PKIDelirium
2006-06-09, 20:34
OK... I want to stop hotlinking of images, but I only want to do it from referrers that I specify (in this case, my competition).
A programmer friend gave me code for it earlier, but it didn't work.
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?badsite\.com/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/hotlink.jpg [L]
Any ideas? It blocked the leeched images properly by breaking them, but the replacement image (hotlink.jpg) did not display.
A programmer friend gave me code for it earlier, but it didn't work.
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?badsite\.com/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/hotlink.jpg [L]
Any ideas? It blocked the leeched images properly by breaking them, but the replacement image (hotlink.jpg) did not display.