View Full Version : bandwidth protector script any good? to avoid hotlinking images?
alohaha
07-31-2002, 01:48 AM
curious, ran across this, might be interesting .. anyone try it??
http://www.siteinteractive.com/bandwidth/
happy11
07-31-2002, 01:53 AM
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ [F,L]
rogerbo
07-31-2002, 01:54 AM
Now i'm asking my selfe why should i pay for a script when a little htaccess does the same ?
alohaha
07-31-2002, 04:41 PM
appreciate..anyone else try this? does that rewrite work ok? other ideas?
Try this one. it's more advanced ;)
--------------------------------------------------
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://yourIPhere [NC]
RewriteRule [^/]+\.(exe|mpeg|mpg|avi|mp3|gif|jpg|JPG|GIF|MP3|AVI)$ - [F]
RewriteRule ^/cgi-bin/.+$ - [F]
Breaker
07-31-2002, 06:11 PM
I use .htaccess for blocking hotlinkers and show them this gif.
http://www.starsuckers.net/hotlink.gif
:D
alohaha
08-01-2002, 05:01 AM
roflmao .. hehe nice graphic :)
intelliweb
08-01-2002, 09:07 AM
Make sure your host has mod_rewrite enabled in apache and .htaccess will work great as described by DOX or happy11
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.