Overview
In this article, you will learn how to add password protection for a directory. This adds an extra layer of protection to files that you don't want anyone to access. A password to protect directory can be easily achieved using this option in cPanel.
Adding password protection to a directory
- 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.
- Under Security Settings, select the Password protect this directory check 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 field, type the user's password.
- Click Save.
Removing password protection from a directory
- Click the name of the directory for which you want to remove password protection.
- Under Security Settings, clear the Password protect this directory check box.
- Click Save.