PDA

View Full Version : How to defend hotlinking?


aj
2008-01-09, 08:31 PM
Howdy folks,

some a**hole from Argentina hotlinked images from some of my freesites and steals massive bandwidth.
I wonder how to defend this....

aj
2008-01-09, 09:41 PM
Oh by the way: That fucker seems to hotlink not only my content:
http://www.poringa.net/posts/imagenes/901020/Compiladito-08.html
http://www.poringa.net/posts/imagenes/901055/Rejuntado-2007-2008.html

Greenguy
2008-01-09, 09:47 PM
http://www.google.com/search?hl=en&safe=off&rls=GGLD%2CGGLD%3A2006-32%2CGGLD%3Aen&q=how+to+stop+hotlinking

aj
2008-01-09, 09:55 PM
Sometimes it's too easy or just too late |loony|

chris01282
2008-01-10, 04:05 PM
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

save this as a text file and name it .htaccess and upload it to your image directory. change the domain.com above to your real domain name

RageCash-Ben
2008-01-10, 11:19 PM
if you really want to have some fun

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?myspace\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?blogspot\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?livejournal\.com/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]

be creative with nohotlink.jpg :D

tigermom
2008-01-11, 02:02 AM
Put a banner with your own domain name that you want branded there ;)

balls_deep
2008-01-11, 12:30 PM
you could also add your url to your images for more traffic.