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

Last modified: Tuesday November 28th, 2023

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.                  How do I password protect a directory/folder on my website? directory privacy jupiter 300x91
  3. Select a folder.How do I password protect a directory/folder on my website? directoryprivacy
  4. Click on the folder name to open the Security Settings screen. How do I password protect a directory/folder on my website? directory privacy set permission
  5. Check the Password protect this directory box and enter the name for your protected directory. How do I password protect a directory/folder on my website? 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? create user
  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

Was this article helpful?
Views: 309

10 Years Beehosting!
Celebrate with 70% OFF + FREE Site Transfer.

Facebook Instagram linkedin

Beehosting.pro website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Menu