Forum Moderators: phranque
my htaccess is:
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^http://(.+\.)?mysitehere\.com/ [NC]
RewriteCond %{HTTP_REFERER}!^$
RewriteRule .*\.(jpg¦jpeg¦gif¦png¦bmp)$ /images/stolen.png [R,L]
There are two possible solutions that I can see.
1) Remove the anti hot-linking code from the .htaccess file for root and instead place it in your /images/ folder and then move the "stolen.png" to root or another folder.
2) Convert the "stolen.png" to an image type that you are not attempting to protect e.g. stolen.tif
RewriteEngine on
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysitehere\.com/ [NC]
RewriteCond %{REQUEST_URI} !^/images.stolen\.png
RewriteRule \.(jpe?g¦gif¦png¦bmp)$ /images/stolen.png [R,L]
Jim
[edited by: jdMorgan at 3:46 am (utc) on May 16, 2006]