View Single Post
Old 03-15-2003, 03:42 AM  
jennycards
Confirmed User
 
Join Date: Feb 2002
Location: European Union
Posts: 1,124
No, it means that when I have a .htaccess file that tries to test for hotlinked movies I am not able to catch "no referers" because even properly linked movies have "no referer".

Normally I would expect my .htaccess to work like this:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://.*mydomain\.com*$ [NC]
RewriteRule \.mov$ http://www.mydomain.com/forbidden.mov [R,L]

But it does not work like this because on some browsers I _never_ receive a request with mydomain.com as a referer.

Instead I have to do it like this:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*mydomain\.com*$ [NC]
RewriteRule \.mov$ http://www.mydomain.com/forbidden.mov [R,L]

But this is dangerous because every user entering my .mov URL directly would get the movie.
jennycards is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote