What is a Password Protected Directory and How it Actually Works?

Do you know you can limit the access to a specific directory with a password?

So What is a Password Protected Directory?
It is a feature that enables you to protect a directory if you want to limit the access of your website directory to only to certain people. A user who tries to open a protected folder will be prompted to enter a username and password before they can access the content once password protected directory is enabled.

How to Configure a Password for a Directory?

Setting up a password protected directory is fairly simple. To add password protection to a directory, follow these steps below:
Step 1: Login to cPanel

Step 2: Click on the “Password Protect Directories” icon at the Security tab.

Step 3: Select the directory that you wish to open and then click on the “Go” button.

Step 4: Click on the folder that you wish to protect to select it. Click the folder’s icon to open it.

Step 5: Click on the “Password protect this directory” checkbox and enter the name for a protected directory.
Step 6: Next, click on the “Save” button below.


Step 7: Click on the “Go Back” button.

Step 8: Under “Create User”, create a username and password to access this directory.

Done! You have successfully configured a password for a directory now.

To ensure that you have done it correctly, relaunch your browser and view the directory to check that your directory has been password protected. If the browser prompts you to login, then your folder has been properly password protected.

It’s better to be safe than sorry. Start creating your password protected directory today!