View Single Post
Old 2005-06-23, 04:53 AM   #8
Roni20
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins and eskimos!
 
Roni20's Avatar
 
Join Date: Dec 2004
Posts: 79
If i have :

RewriteEngine on
RewriteRule ^domain.com/dir/dir/dir/image.jpg$ - [L]

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com.*$ [NC]
RewriteRule (jpg|jpeg|png|gif)$ - [F,L]

it doesn't work, all images are protected

---------
if:

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com.*$ [NC]
RewriteRule (jpg|jpeg|png|gif)$ - [F,L]

RewriteEngine off
RewriteRule ^domain.com/dir/dir/dir/image.jpg$ - [L]

than all images are able to hotlink the same with

RewriteEngine off

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com.*$ [NC]
RewriteRule (jpg|jpeg|png|gif)$ - [F,L]

RewriteRule ^domain.com/dir/dir/dir/image.jpg$ - [L]

Roni20 is offline   Reply With Quote