Adding password protection to a directory
When you add password protection to a directory, you provide a name for the directory that will appear in users' web browsers when they are prompted for a username and password. Then you create users and passwords to specify who can access the directory.
To add password protection to a directory, follow these steps:
- Log in to cPanel.
- In the FILES section of the cPanel home screen, click Directory Privacy.
- Click the name of the directory that you want to protect.
- Click Edit.
- Under Security Settings, select the Password protect this directory check box.
- In the Enter a name for the protected directory text box, type a name for the protected directory.
- Click Save.
- Under Create User, type a username in the Username text box.
- In the New Password text box, type the user's password.
- In the Confirm Password text box, retype the user's password.
- Click Save. cPanel adds password protection to the directory.
Removing password protection from a directory
You can remove password protection from a directory when you no longer want to protect it with a password. You do not need to remove the usernames and passwords that you created for the directory. All usernames and passwords are retained when you remove password protection from the directory, but they become inactive. If you subsequently re-enable password protection for the directory, you can use the same usernames and passwords again.
To remove password protection from a directory, follow these steps:
- Log in to cPanel.
- In the FILES section of the cPanel home screen, click Directory Privacy.
- Click the name of the directory for which you want to remove password protection.
- Click Edit.
- Under Security Settings, clear the Password protect this directory check box.
- Click Save. cPanel removes password protection for the directory.