How to protect the file using .htaccess and .htpassword?

Discussion in 'Security' started by Egrove Systems, Mar 2, 2011.

  1. #1
    Hi Guys,


    How we can protect our .ht access file using password?
     
    Egrove Systems, Mar 2, 2011 IP
  2. testu

    testu Well-Known Member

    Messages:
    231
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #2
    .htaccess is usually placed in a directory that is not visible on the internet. This can be /home/username/somefolder or other folders such as /usr/local/apache/passwd.
    .htpasswd is usually used to create usernames/passwords to the .htaccess file.
     
    testu, Mar 3, 2011 IP