Jump to content

Could someone tell me why this isn't working?


somewon

Recommended Posts

RewriteEngine on
RewriteCond %{http_referer} !^$
RewriteCond %{http_referer} !^http://([^.]*[.]*)?website.org/ [NC]
RewriteCond %{http_referer} !^http://(www.)?google.com/ [NC]
Rewriterule (.*.(png|gif|jpeg|jpg)) http://www.webgirlz.org/watermark.php?image=http://www.webgirlz.org/$1 [R,NC] 

 

What it's supposed to do is block the hotlinking of images (other than google), and instead call a PHP script with places a watermark on the image and shows that instead. When I try to hotlink an image somewhere, it just lets me hotlink straight to the image and doesn't redirect to the script at all.

 

I know the script itself works.

 

Is there something wrong here? I'm baffled. =B

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.