How to Password Protect a Directory in cPanel

This demo assumes you’ve already logged in to cPanel

Now let’s learn how to password protect a directory, so that people will need a password to view web pages within it

1. Click Password Protect Directories under the Security section

2. Select the directory to start with, then click Go

Password Protect Directory - cPanel - Directory Selection

3. Select the directory you want to Password Protect by clicking it’s name

Password Protect Directory - cPanel - Password Protect Directories

4. Check the Password Protect this directory box…

Password Protect Directory - cPanel - Security Settings

5. Then give a name for the directory, and click Save

assword Protect Directory - cPanel - Protected Directory Saved

The directory is now protected, and requires a password to enter it via a browser

We must therefore create at least one user, and assign them a password to access the directory

6. Click Go Back

7. Enter a Username here

8. Then enter and confirm a Password

9. Click Add Authorized User

Password Protect Directory - cPanel - Create Authorised User

The protected directory now has one user who has access to it. Repeat this process for each additional user you want to grant access for

You can see the active user for this directory here and can Add or Delete Users from this page at any time…

Password Protect Directory - cPanel - Manage Authorised Users

This is the end of the tutorial. You now know how to password protect directories, and assign users to them

What Our Customers say...