How to prevent leeching
Posted: June 4th, 2009 | Author: Henrie Media Inc. | Filed under: Configuration | 1 Comment »
If 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.






Thanks! Just what I needed.