Quote:
Originally Posted by turtle73
I have a members section on my website which i would like to password protect so that only members with the username and password can view the pages in a browser.
I've used htpasswd and htaccess files with another web host in the past but i'm struggling to get it to work here.
i have a windows hosting account
any simple answers?
|
To protect any directory in your hosting account with a password, in that directory,its is necessary to create an .htaccess file. That .htaccess file contains must contain following details :
AuthUserFile /home/content/l/o/g/login_name/html/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
This require necessary user and their details are as follows :- Where their are three different letters "l," "o," and "g" are of your hosting login and "login_name" is your full hosting login
eg:- The hosting login for "abcde" would translate to the following path: /home/content/m/a/y/abcde/html/.htpasswd
Then the AuthUserFile will describes the server where the server should looks for the .htpasswd file. The .htpasswd file contains a list of users . The file also contains detail to grant or not to grant access to a specific user. The file also contains details about what path access the directory and the user has as of with their hashed passwords. It is very easy these days as there are choice of tools which are available online to create .htpasswd files.