This is a discussion on Hotlinking problem within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I have a problem with sites hotlinking to images on the charity website I manage, I have setup Mod ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I have a problem with sites hotlinking to images on the charity website I manage, I have setup Mod Rewrite and have managed to block access to requests for the images not originating from our domain. I have since tried to replace the FAIL with an image depicting stolen image, the image shows in the logs as being called but if I got to the offending site all I see is a placeholder not the "stolen image" what am I doing wrong? RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?MY_DOMAIN.net/.*$/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?MY_DOMAIN.net/.*$$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.MY_DOMAIN.net./.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?MY_DOMAIN.org.uk/.*$/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?MY_DOMAIN.org.uk/.*$$ [NC] *other rules for sites I want to allow to link* RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.MY_DOMAIN.net/files/photos/stolen.jpg [R,NC] Thanks Gerald |
| Thread Tools | |
| Display Modes | |
|
|