1. Home
  2. Linux Hosting Service
  3. How to Password Protect a Directory in cPanel

How to Password Protect a Directory in cPanel

  1.  Login to cPanel control panel
  2. Find Files section and click on Directory Privacy. You will see the list of sub-directories.
  3. Click on sign icon which is present to the left of public_html to see the contents. You can see sub-directories of public_html.
  4. Select the subdirectory and click on it to update its access requirements.
  5. In the Security Settings, check the Password protect this directory checkbox.
  6. Enter the name of protected directory.
  7. Click on Save button.
  8. Scroll down the page, Add a username and password for that protected folder.
  9. Click on Add/modify user.

You can not protect your individual files, It supports only for folders.

Updated on July 2, 2019

Was this article helpful?

Related Articles