Why I currently do not post
- Preparations for upcoming events
- Wrath of the Lich King Beta Test
- Recruit-a-Friend (FAQ)
I just wanted to say I did not forget about my blog and its readers.
I just wanted to say I did not forget about my blog and its readers.
My previous post about preventing image hotlinking works. Works well, very well. Too well actually. What I totally didn’t think about was FeedBurner, Google image search and Google cache. Since I use the Google version of FeedBurner I don’t have to add feedburner.com to .htaccess, but you might want to add it. So here’s the addition for the control file:
RewriteCond %{HTTP_REFERER} !feedburner\.com [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
Image Hotlinking (also known as leeching, or inline linking) is the practice of stealing bandwidth from other websites, by linking to an image stored on another server. By doing this, when a person visits a website with hotlinked images, the images must be downloaded from the other server, costing that server bandwidth, instead of the server being visited. Here is how you can prevent this with your own images. Open .htaccess and add the following (edit to fit your server and image ofcourse).
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !nightspirit\.nl [NC]
RewriteRule \.(jpg|jpeg|png|gif|bmp)$ /forbid.png [L,NC]
HA! This time I won from technique. FeedBurner FeedSmith plugin redirect all my feeds to a predefined URL, Standard Sitemap Plugin generates a xml like a feed. I see a problem there, don’t you? You want all feeds to be redirected but the sitemap. Here is the solution.
Open FeedBurner_FeedSmith_Plugin.php in your favorite editor. Go to line 111 and change it to:
if (is_feed() && $feed != 'comments-rss2' && $feed != 'sitemap' && !is_single() && $wp->query_vars['category_name'] == '' && ($withcomments != 1) && trim($feedburner_settings['feedburner_url']) != '') {
The part I added is && $feed != ‘sitemap’.
Enjoy your new sitemap.xml.
Days ago I discovered feedburner.com.” Our Web-based tools help bloggers, podcasters and commercial publishers promote, deliver and profit from their content on the Web“. I don’t really understand yet why I should use their service, but there must be a reason. So I signed up and burned my feeds. But somehow it doesn’t work for me as it works for others. Figures as I always manage to break things.
Social Media