Password Protect Directories in cPanel with your Dedicated / Cloud Server

Log into cPanel on your dedicated or cloud server.

  1. Click on the Password Protect Directories icon found under Security.
  2. Choose Web Root (you may also 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 field. This will be the message shown to visitors when they try to login 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.

To ensure your directory has been password protected, launch your browser and view the directory. If the browser prompts you to login, then your folder has been password protected.

Cpanel have a 8 character limitation. Any characters typed beyond the first 8 will not be required by visitors.

Leave a Reply

Your email address will not be published. Required fields are marked *