cPanel Hosting User Guides

How do I password protect a directory/folder on my website?

how-do-i-password-protect-a-directory-folder-on-my-website-attachment-694

This article describes how to password-protect a directory/folder on the website.

To do this please follow these steps:

  1.  Login to cPanel.
  2. Click Directory Privacy in the FILES section of the cPanel home screen.                  Directory-privacy-jupiter
  3. Select a folder.how-do-i-password-protect-a-directory-folder-on-my-website-image-2
  4. Click on the folder name to open the Security Settings screen. Directory-privacy-set-permission
  5. Check the Password protect this directory box and enter the name for your protected directory. Directory-privacy-password-protect
  6. Click save.
  7. Click Create User
  8. Enter your username and passwordhow-do-i-password-protect-a-directory-folder-on-my-website-image-5
  9. Click save.
  10. After finishing, you should see your username in the list of authorized users.
  11. Repeat the last step for any additional usernames you wish to add.

Any information or links in a password-protected folder will ask for the password again.

Note. Set a password to protect certain directories in your account. When you enable this feature, a user attempting to open a secure folder will be prompted for a username and password before they can access your content.

Looking for an outstanding cPanel-based web hosting provider? Try our web hosting packages with cPanel