In this tutorial, you will learn how to password protect a directory using the cPanel dashboard, available to users on one of Hosted.com’s cPanel Web Hosting plans. This tutorial assumes you have cPanel and are already logged in.
Protect password directories in cPanel to safeguard sensitive or private content on your website. Password protection ensures authorized individuals can only access designated directories, such as confidential documents, members-only areas, or development environments. When you add an extra layer of security, you stop unauthorized access, comply with privacy regulations, and control who can view or download your website’s content.
TABLE OF CONTENTS
Password Protect A Directory In cPanel
Now let’s learn how to password-protect a directory.
1. Click “Directory Privacy” under the Files section.

2. A list of your Directories will appear. Click “EDIT” next to the Directory you wish to protect.

3. Select the Directory you wish to Password Protect by clicking its name.
4. Check the Password to protect this directory box.

5. Then give the Directory a name and click “Save”.

The Directory is now password-protected; a username and password will be required to enter it through a Web Browser.
Note: At least one user should be created and assigned a password to access the Directory.
6. Click “Go Back”.
7. Enter a Username, then enter and confirm a Password. Once again, click “Save”.
The protected Directory will now have one user with access to it. Repeat this process for each additional user you want to grant access.
This is the end of the tutorial. You now know how to password-protect Directories and assign users to these Directories in cPanel.
Additional Information:
Benefits Of Password-Protecting Directories
Password-protecting directories in cPanel is a simple yet effective measure to safeguard your website’s sensitive content and maintain control over who can access it. It offers several benefits including:
Enhanced Security
You can stop unauthorized users from accessing or downloading data by requiring authentication to access sensitive directories. This is especially helpful for private or confidential information that shouldn’t be available to the public.
Managed Access
You can ensure restricted access and make the content available only to users with login credentials. This way you can manage who has access to the content inside the protected directory.
Prevent Unauthorized Entry
Password-protect offers more security than standard website login procedures. To access the protected directory, even if someone manages to get past the login page on your website, they will still require different credentials.
Secure File Storage
Password-protecting the directory gives an additional layer of security against unwanted access if you’re storing data that isn’t meant for public consumption, such as development files, backups, or sensitive documents.
Compliance
By guaranteeing that only authorized users have access to sensitive data, password-protected directories can help you adhere to security standards or regulations, such as GDPR (General Data Protection Regulation) or HIPAA (Health Insurance Portability and Accountability Act).
Peace of Mind
If your website handles important or proprietary data, you will feel at ease when your private or sensitive files are safeguarded with an extra security layer.
Log into Hosted.com Account
1. Go to the Hosted.com Login website page.

2. Enter your Email and Password and click the “Sign In” button.
Access cPanel via Your Hosted.com Account
3. You will see the Hosted.com Dashboard, displaying the Manage Account menu on the left and your Account Information, Account Overview on the right and Open Support Tickets below.

4. Click the “Manage Service” dropdown and select your hosting package – our example uses the WordPress Hosting plan. The hosting window will open and you will see Product Information and Quick Manage on the right.
5. Click the “Manage” button to the right of the domain name you want to access.

6. The display will now show Product Information, Quick Manage, Resource Usage and Site Statistics for that domain name.
7. Under “Product Information”, scroll down to “Control Panel”, which will display cPanel to the right, and click on the “Login” button.

8. The cPanel Dashboard will now be displayed.

Login to cPanel Online
1. Visit your cPanel URL, either supplied to you through your web host or attained through other sign-up methods.
2. Enter your Username
3. Then enter your Password and click “Log in”.
