Results 1 to 3 of 3

Thread: Strange htaccess FireFox issue.....?

  1. #1
    Join Date
    Apr 2005

    Strange htaccess FireFox issue.....?

    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
    <Limit PUT DELETE>
    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]

  2. #2
    Join Date
    Dec 2010
    I have the same problem like you, did you find any solution?

    Anybody know any solution, please?

  3. #3
    Join Date
    Dec 2010
    I would like to add, that this problem is because of FireFox not sending HTTP_REFER for flv, swf files but there must be a way around...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center