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.

directory-privacy

Step 3. Select which directory you want to put the privacy.select-directory-privacy

Step 4. Enter the following details:

  • Name of the protected directory
  • Username
  • Password

username-directory-privacy

Step 5. Click Save button.

Remove Password Protection

Step 1. Click Directory Privacy under Files panel.

directory-privacy

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

password-protected-directories

Select the domain name that has the privacy.

 

select-directory-password-protect

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

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

delete-password-protect-user

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

protected-directory-user-deleted

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

unprotected-directory

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

directory-unprotected

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

Password protect directory in cPanel

 

(Visited 221 times, 1 visits today)