I've been playing around with blocking hotlinking off of my site, and have had problems with it. Does anybody else do this for images on your domain names here? This is what I've been trying to use:
CODE
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://szilagy.us/.*$[NC]
RewriteCond %{HTTP_REFERER} !^http://www.szilagyi.us/.*$[NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]
RewriteCond %{HTTP_REFERER} !^http://szilagy.us/.*$[NC]
RewriteCond %{HTTP_REFERER} !^http://www.szilagyi.us/.*$[NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]
...as an addition to my .htaccess file. "Options FollowSymlinks" is already enabled on the .htaccess. When I add this code, though, and try to go to http://www.szilagyi.us/index.phtml it just blocks all of my own images (but it does block hotlinking off my test URL on my friend's site!). I know that I'm close, but how do I keep it from blocking my own domain as well? I can't quite nail it and keep thinking that I'm just barely missing some syntax somewhere...
Anyone...?