Hotlinking problem

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-27-2004
Grytpype-Thynne
 
Posts: n/a
Default Hotlinking problem

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:26 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0