Password protect directory in cPanel

You may want to have a more secured access to your directory. This can be done by creating a password protect directory in cPanel. Please follow the instructions below.

(Note: Other cPanel may have a different interface than presented above. If you have Directory Privacy, please scroll down and follow the other instruction .)

Password protect directory in cPanel

  1. Log into cPanel
  2. Find the icon under the “Security” section and click on the “Password Protect Directories” icon.Password protect directory in cPanel
  3. Select the directory you’d like to navigate to in the pop up window.Password protect directory in cPanel
  4. Now, select the directory you wish to password protect. Clicking a folder name will password protect that folder. If you want to password protect a subfolder, click on the folder icon next to it’s name, then select your appropriate folder.
  5. Once you have selected a folder to password protect a screen will appear with settings you’ll need to configure. When finished, “Save” the settings and then “Add/modify authorized user”.
  6. Now, when you visit the site in your web browser you’ll be prompted with a login screen for that directory.

Set up Directory Privacy

Step 1. Log in to the cPanel.

cPanel-Login | FTP password

Step 2. Click Directory Privacy under Files panel.


Step 3. Select which directory you want to put the

Step 4. Enter the following details:

  • Name of the protected directory
  • Username
  • Password


Step 5. Click Save button.

Remove Password Protection

Step 1. Click Directory Privacy under Files panel.


Click Password Protect Directories under Security Panel for VPS and above hosting packages.


Select the domain name that has the privacy.



Step 2. Click the folder that is protected.password-protect-directory

Step 2. Click on the username and click Delete User button.


Step 3. The user is now deleted. Go back to the previous page.


Step 4. Under Security Settings, make sure that the Password protect this directory is unchecked. Click Save button.


Step 5. The permission has been modified and the directory will be accessible without the username and password.


If you have further questions, please do not hesitate to contact our support team.

Password protect directory in cPanel


(Visited 238 times, 1 visits today)