Can I password protect directories? Print

  • password
  • 568

To password protect a directory:

 

  1. Login into your cPanel and click on the Password Protect Directories icon, found under Security.
  2. Choose Web Root (and you may need to select Show Hidden Files)
  3. Click on the name of the directory that you wish to password protect.
  4. Check the box for "Password protect this directory:"
  5. Fill in "Name the protected directory". This is just the message that will show to visitors when they try to log in and can be anything you like.
  6. Click on the Save button below.
  7. Click "Go Back"
  8. Fill in a Username and Password at the bottom of the page, and click "Add/modify authorized user".
  9. You are Done. A password now protects the directory you selected.

Launch your browser and visit the folder to ensure your directory has been password protected. If the browser prompts you to log in, your directory has been password protected.

Note: At this time, you can only protect directories (not individual files) from cPanel. Any file that needs protection should be placed in a protected directory.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution