Link Protection .htaccess not working, blocks self
Posted by: cap
Posted on: 2008-05-04 14:02:00
Any help would be appreciated.
Basically I used dreamhost's link protection to block hot linking to some images on my blog at thefinalepisodes.com/pics/anime/
Dreamhost's tool generates a .htaccess file like so in that directory:
### Generated by Dreamhost. DO NOT modify!!! ###
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?thefinalepisodes.com/?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?*.feedburner.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?bloglines.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?feedburner.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?images.google.*/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?msn.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?yahoo.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|png|mp3|mpg|avi|mov)$ - [F,NC]
################################################
which is pretty standard stuff. dreamhost panels notes that I don't have to include my own domain, which is evidently included. problem is, when I head to my own blog at thefinalepisodes.com, the images are blocked when accessed from my own domain?
I don't write on the blog much anymore, so it's not a terribly big deal. but if I remove protection, the various myspace, forums, and other blogs hot linking will eat up bandwidth...
is this an issue with the wordpress rewrite rules messing with it?
there's a wordpress generated .htaccess placed in the main directory:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
any help or info would be appreciated. thanks!