htaccess Hotlink Issue
Posted by: joshuas
Posted on: 2007-09-05 10:28:00
I have the following .htaccess file in my domainname.com/image directory to prevent image hotlinking:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?joshuastarling.com [NC]
RewriteRule .(jpg|jpeg|png|gif)$ - [NC,F,L]
I also have a .htaccess file in the root of my domain error redirection.
The .htaccess file for image hotlinking wasn't working yesterday at all when I uploaded it. Then it was working this morning. However, when I came back from lunch, it was not working anymore.
The file for redirection always seems to be working.
Any ideas?