Web Hosting Talk







View Full Version : antileech


creepcolony
01-28-2004, 03:03 AM
ok, i recently added this to my .htaccess file to prevent leeching:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://creepcolony.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.creepcolony.com/ [NC]
RewriteRule [^/]+.(zip|exe|scm|scx|hqx|iso|sit|mp3|mid|rep)$ http://www.creepcolony.com/leech.shtml [R,L]

i tested it out and it seemed to work. but today i got an email from someone who tried to download a file from my site but got the leech.shtml page instead. any ideas why this happened?

btw, i removed the antileech code in my .htaccess for now....

zoid
01-29-2004, 11:12 AM
This probably happened because the user's application did not send the necessary referer information along with the request.