.htaccess help
Date: 03/09/06
(PHP Community) Keywords: web
I've recently put a .htaccess file on my website to help prevent hotlinking of my icons, however I don't quite understand a lot of the coding for it. I'm not 100% sure if what I've put is even correct, because some people (including myself) have been able to see my icons, and others are seeing the no hotlinking image, and I don't understand why (though I've been told that it could be something to do with a firewall setting).
If anyone could tell me if I have my .htaccess written out correctly, or give me some tips on it, I'd really appreciate it.
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?projectsquish\.net/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?icons\.projectsquish\.net/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?livejournal.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-zA-Z0-9_]+\.)?livejournal.com(/).*$ [NC]
RewriteRule \.(jpe?g|gif|png)$ images/no_hotlink.gif [L]
Source: http://community.livejournal.com/php/423463.html