sugarbyte
11-21-2004, 08:47 PM
I am trying to prevent people from direct linking my images and this is my .htaccess code:
ErrorDocument 404 http://hl2maps.ansiibomber.ch/sugarbyte/finalfantasy/404notfound.html
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?hl2maps.ansiibomber.ch.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?hl2maps.ansiibomber.ch.*$ [NC]
RewriteRule \.(gif|jpg)$ http://hl2maps.ansiibomber.ch/sugarbyte/finalfantasy/nodirectlinking2.gif [R,L]
I don't understand why the image replacement isn't working (i did a test of a page with an image with the whole pic url, as if i were direct linking) and it still doesn't work!! What could I be doing wrong? What am i doing wrong!? Thanks so much ^____^
ciaoo
ErrorDocument 404 http://hl2maps.ansiibomber.ch/sugarbyte/finalfantasy/404notfound.html
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?hl2maps.ansiibomber.ch.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?hl2maps.ansiibomber.ch.*$ [NC]
RewriteRule \.(gif|jpg)$ http://hl2maps.ansiibomber.ch/sugarbyte/finalfantasy/nodirectlinking2.gif [R,L]
I don't understand why the image replacement isn't working (i did a test of a page with an image with the whole pic url, as if i were direct linking) and it still doesn't work!! What could I be doing wrong? What am i doing wrong!? Thanks so much ^____^
ciaoo