How to password protect a directory in cPanel

Back to search

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

2 Select the directory to start with, then click Go

3 Select the directory you want to password protect by clicking it's name

4 Check the Password protect this directory box...

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

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

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

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

Also Read

What is the maximum period we could be off-line for website and emails while the move over takes place?
Providing we get full co-operation from your current hosting provider, the maximum period of...
How to install Zen Cart from Softaculous
1 Scroll down until you find Zen Cart in the menu on the left. 2 Click Zen Cart. This Overview...
How to install Dotclear from Softaculous
This demonstration assumes you already have Softaculous open. 1 Click Dotclear from the menu....
Managing files in SmartFTP
This tutorial assumes you already have SmartFTP running on your computer and are connected to a...