This article describes how to use cPanel to protect specific directories with a password. Visitors to password-protected directories must enter a username and password to view the directory's contents.
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:
If you are using the Paper Lantern theme, in the FILES section of the cPanel home page, click Directory Privacy:
Click the name of the directory that you want to protect.
In the Confirm Password text box, retype the user's password.
Click
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:
If you are using the Paper Lantern theme, in the FILES section of the cPanel home page, click Directory Privacy:
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.