Forum Moderators: phranque
I checked it and it's enabled so people hotlinking my images can't display those. However that makes my logs get tons of 404 errors
Example:
http://www.example.com/friend/profile/displayProfile.do?userid=blabla -> /mysite/myimage.gif
How do I stop that?
[edited by: jatar_k at 8:10 am (utc) on Nov. 6, 2006]
[edit reason] examplified [/edit]
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://111.222.333.444/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://friendlydomain.com/.*$
RewriteCond %{HTTP_REFERER}!^http://translation_site.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.mydomain.com/.*$ [NC]
RewriteRule .*\.(jpg¦gif)$ /hotlink.png [R,NC]
What structure does yours have?
Does the "myimage.gif" file exist in the expected location?
Thank you.
Eliz.