View Single Post
Old 11-20-2003, 07:11 PM  
djmick
Registered User
 
Join Date: Apr 2003
Location: UK
Posts: 54
hotlinking problem using .htaccess - help needed please

simple problem, some advice on how to solve this would be much appreciated.

below is the code on my file

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://secondsite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.secondsite.com/.*$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

Hotlink prevention is working but when accessing the main page on both sites all the images are missing.

e.g.

http://mysite.com/ - OK
http://mysite.com - fucked
http://www.mysite.com/ - OK
http://www.mysite.com - fucked

Just when the trailing slash isn't there it's fucked.

Any suggestions?

Thanks

djmick
djmick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook