View Single Post
Old 01-27-2005, 12:46 PM  
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
what the FUCK im doing wrong. htaccess anti hotlink help please.

im posting this here cuz noone barely goes to the webmaster q n a forum.
i got this code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?hotlinksite\.com/ [NC]
RewriteRule \.(gif|jpe?g|png)$ http://www.mydomain.com/des/test/hotlinkimg-d.gif [NC,L]

hotlinksite.com is the site that has permission to hotlink from my domain.
The anti hotlink works perfect. But that fucking substitute image just won't appear on sites that dont have hotlink privileges!
I already checked fusionx's tut but i tried everything, i looked on the fucking web all over and they give the same fucking code but it doesnt fucking work! Could someone please help me with this shit...
nico-t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote