Password Protect Directories icon

You can password protect directories (folders) via the cPanel control panel, which protects all the files within the password protected folders.

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

To password protect 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". Actually, this is just the message that will show to visitors when they try to login, and can be anything you like.
  6. Click on 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".

You are done. The directory you selected is now protected by password.

Warning! This password has a maximum of 8 characters. Any characters typed beyond the first 8 will not be required by visitors.

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.

500 error after login?

Check the folder ownership on the .htpasswds folder (above public_html). Change them from user.user to user.nobody and ensure the permissions are set to 750 and then refresh your protected page. The error will be gone.

Note: Shared and reseller customers will need SignedOn's help to change any file's ownership. Please join us in live chat or on the phone for this change.
 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

MySQL database size limit

MySQL database size limit There is no limit for the size of databases.MySQL is only limited to...

How to backup/restore your MySQL database

If you run a database driven website, it is important to backup your databases, periodically. You...

How to repair a broken database

MySQL queries or tables stop working If you get an error which says, "so-and-so is marked as...

Image Manager

The Image Manager allows you to view and modify images in your account. You can change the size...

Please read before creating an Addon Domain

About addon domains Addon Domains are handled like subdomains as far as the server is concerned,...