How to password protect a directory in cPanel

This demo assumes you've already logged in to cPanel

Now let's learn how to create a password protected directory

1) Click Web Protect

2) Then click the public_html folder

3) We're going to password protect the /demo directory.... Click the demo link

4) Select the check box to protect this directory with a password

5) Now enter a name for this protected directory

6) Click Save

7) Click Go Back

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

Scroll down

8) Enter a username here

9) Click Generate Password

10) Click Use Password

11) Make note of the password and click Close

12) Click Add/modify authorized user

13) Click Go Back

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

14) Let's return to the directory list

You can return to this screen at any time to modifiy existing users' passwords, add more users, or delete users

15) Click Up One Level

See the lockbox by the /demo directory?  That indicates the directory is password protected

This is the end of the tutorial.   You now know how to setup password protection for specific directories within your account.  Don't forget to create users for your protected directories!