1. Make a text file called htaccess.txt in notepad and put the following lines in it:
AuthUserFile /home/username/directoy id/path to directory/.htpasswd
AuthName "My secret area" AuthType Basic require valid-user
The top line is the path to the directory you want to password protect. You will need to change the
'username' and 'directory id'. You can find this information on the Account Details page on the control panel.
The .htpasswd contains usernames and passwords, we will create this a bit later.
The "My secret area" text can be anything you want. It will be displayed in the password box when
someone tries to access the protected area of the site.
2. Make another text file called htpasswd.txt in notepad and put the following lines in it:
'username' is the username you want to use, and 'password' is the encrypted password. You MUST
encrypt your password by going to http://www.controlpanel.cc/password.php and copying the encrypted text into your htpasswd.txt file.
You can have as many username:password lines as you want.
3. Upload the two files to the directory that you want passworded. Rename the text files to .htaccess and .htpasswd in your ftp program.
When you go to the web-site, a password window should now appear.