I am trying to protect a directory containing video files on my website.

I do not want guests to be able to view the directory contents or access the contained files directly via URL but I do want them to be able to execute the files.

To do this I set the permissions on the folder to CHMOD 771 and enabled HotLink Protection to block direct access to all necessary files (jpg,jpeg,gif,png,bmp,mov,flv) and redirect the user if they try to access these files directly.

Now, in Internet Explorer, Safari, and Opera everything works as it should. The videos play without problems. I am not allowed access to the directory and get redirected when trying to access files directly (great!).

In FireFox (mutiple versions, Mac/Windows) the directories are forbidden and I am redirected when I try to access files directly (as it should).

However, videos will not play on my site in FireFox. I get a "File not found or access denied" error on my video player.

For some reason FireFox seems to be blocking access to the protected videos and is not allowing them to play on my website.

I can't figure out any logical explanation as to why it works in all other browsers but will not work in FireFox.

Can someone please enlighten me and why this would happen to how to fix this? Or possibly another alternative to achieve the protection mentioned above?

Here is the htaccess files I am using.

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

ServerSignature Off

<Limit GET POST>
order deny,allow
deny from all
allow from all
order deny,allow
deny from all
AuthName mydomain.com

php_value upload_max_filesize 200M
php_value post_max_size 200M
php_value max_execution_time 200
php_value max_input_time 200

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www. mydomain.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www. mydomain.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|mov|flv)$ http://www. mydomain.com/members/ [R,NC]