PDA

View Full Version : .htaccess anti-hotlinking failure


mjkerr
10-08-2003, 02:18 PM
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !.*domainname.com.*$ [NC]
RewriteRule \.(gif|GIF|jpg|JPG|png|PNG)$ http://domainname.com/img/bandwidth-thief.gif [R,L]

I have this setup on all my accounts to prevent hotlinking, but I have noticed that the alternative image is not appearing
This has probably occured since the Apache update

Please advise how to correct this