Here’s a quick tip. While checking my stats to see if the FunWebProducts bot was still being blocked, I noticed that there were a huge number of hits for one of my images. I had previously noticed that a website was hot-linking to another small image months ago.

At that time, I figured it didn’t hurt because the image was just about 1KB in size, so I did nothing. However, this kayu website (a very big website with thousands of Malaysian users) started hotlinking to multiple images and was beginning to eat up my bandwidth. So I decided to block all hot-linking.

It’s pretty easy to block people from hot-linking to your images. Just add the following code to your .htaccess file :

# Stop HotLinking
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?positivemoneyideas.com/.*$ [NC]
RewriteRule \.(gif|jpg|js|css)$ - [F]

This should effectively block all those dartardly evil doers who don’t have the decency to create their own images but instead choose to steal not only the image, but to eat up my bandwidth while stealing!

Popularity: 54% [?]

Share this blog post with a friend:

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Technorati
  • Netscape
  • Reddit
  • YahooMyWeb
  • StumbleUpon
  • Linkter
  • SphereIt