How to prevent leeching

Posted: June 4th, 2009 | Author: Henrie Media Inc. | Filed under: Configuration | 1 Comment »

Apache logoIf you notice an unreasonable consumption of your bandwidth, there is a good chance that some of your interesting images are being virtually stolen by other websites. They issue links to your content and leave you with the bill. Here is a sure way to prevent this from happening once and for all!

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomainname.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomainname.com [NC]
RewriteRule [^/]+.(gif|jpg)$ http://eboundhost.com/images/leeching.jpg [R,L]

Of course, you will need to change “yourdomainname.com” to match your actual domain name.

Print, Email, Share, Enjoy!
  • Print
  • email
  • Twitter
  • Facebook
  • Digg
  • MySpace
  • Mixx
  • del.icio.us
  • Technorati
  • StumbleUpon

One Comment on “How to prevent leeching”

  1. 1 Tom Smith said at 11:42 pm on July 19th, 2009:

    Thanks! Just what I needed.

Leave a Reply