Forum Moderators: phranque

Message Too Old, No Replies

Hotlinking ban sometimes bans my own site too

         

Nick_Hope

9:25 am on Jun 21, 2005 (gmt 0)

10+ Year Member



Here's my .htaccess file:

<Files .htaccess>
deny from all
</Files>
ErrorDocument 401 /errorpages/401.html
ErrorDocument 403 /errorpages/403.html
ErrorDocument 404 /errorpages/404.html
Options +FollowSymlinks +SymlinksIfOwnerMatch
RewriteEngine on
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mysite1\.com [NC]
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mysite2\.com [NC]
RewriteCond %{HTTP_REFERER}!^http://images\.google\. [NC]
RewriteCond %{REQUEST_URI}!^/images/hotlink\.gif$
RewriteRule \.(gif¦jpe?g¦wmv¦png¦php)$ /images/hotlink.gif [L]

It normally works OK but occasionally the hotlink.gif image comes up instead of many of the pictures on mysite1.com as if it's a third party site. Does anyone have an idea why that might be?

Dijkgraaf

2:17 am on Jun 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you have access to your web logs check those and see if the Referer is not what you expect sometimes.