Can I password protect directories?

Can I password protect directories?

To password protect directory:Login into your cPanel and click on the Password Protect Directories icon, found under Security.
  1. Choose Web Root (and you may need to select Show Hidden Files)
  2. Click on the name of the directory that you wish to password protect.
  3. Check the box for "Password protect this directory:"
  4. 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.
  5. Click on Save button below.
  6. Click "Go Back"
  7. Fill in a Username and Password at the bottom of the page, and click "Add/modify authorized user".
  8. You are Done. The directory you selected is now protected by password.
To ensure you directory has been password protected, launch you browser and visit the folder. If the browser prompts you to login, then 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.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Do you have a cPanel manual?

Do you have a manual for your control panel? Yes, a manual for cPanel is available. Go to...

How to backup/restore your MySQL database

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

Creating a subdomain

When you create a subdomain in cPanel, you will be asked to choose the name of the subdomain, the...

Error page codes

What are Error Codes? These numbered error codes are how the server tells website visitors...

Lost database password

Forgot your database's password? You must create a new user with a new password. Do not worry,...

Powered by WHMCompleteSolution