Rewriting port 81 with htaccess to protect the files

Discussion in 'Apache' started by CheckMater, Apr 14, 2011.

  1. #1
    Hi all hope all of you are doing well, I have an htaccess file to protect my files, something like:

    order allow,deny

    allow my.site.com
    deny from all

    When I type http://www.mysite.com/folder/vfile.flv then the system blocks me, so all normal until here but when I try:

    http://www.mysite.com:81/folder/vfile.flv then the htaccess file is bypassed and someone can get the files, so my question is, how can I get the htaccess to block all people and not my site from the port 81 or any other port?

    Thank you in advance.
     
    CheckMater, Apr 14, 2011 IP