Password Protect Directories
Q. However do I password protect directories?
Ans. Follow these steps in cPanel, To password protect a folder/directory :
Step 1: Login to your control panel using your account username/password at http://yourdomain.com/cpanel
Step 2: Click on “Password Protection” under Services
Step 3: Browse to the folder in which you want to restrict access
Step 4: Click on the name of the folder
Step 5: It will present you with a form. It has two parts and you have to submit them both separately:
a) Enable access only to authorized users
[ ] Directory requires a password to access
Check the above box.
and Protected Resource Name: [ ] (enter a generic name of the protection such as “My Protected Folder”)
Submit and it will protect it.
Now step (b) for adding username/password. Browse to the same form and
b) Add/modify authorized user
Enter the username/password and save it.