Web Hosting Talk







View Full Version : anti-leech script?


klisis
07-31-2001, 02:42 AM
Does anyone know of a fine anti-leech script?

That does following.

1. allow download for authorised domain(s).

Thanks.

klisis
07-31-2001, 02:43 AM
Oops, I didn't notice that this kind of thread isn't suitable in this forum.

Please move this thread to Hosting Software and Control Panels forum.

Thanks, mod or admin.

Eagle
07-31-2001, 06:41 AM
make a ".htaccess" with


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.domain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com [NC]
RewriteRule [^/]+\.(exe|mpeg|mpg|avi|mp3|gif|jpg|JPG|GIF|MP3|AVI)$ - [F]
RewriteRule ^/cgi-bin/.+$ - [F]

klisis
07-31-2001, 11:34 AM
Thanks, Eagle