Can I password protect directories?

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".
  9. 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

How to setup Cron Job

To set up a cron job, follow the steps below:Log in to your cPanel and look for the Cron Jobs...

How to change the password of your cPanel account

There may be times where you would like to change the password of your account. It is recommended...

How to redirect a subdomain to another page

You might want your sub domain to redirect to another page. To do this, please do the following:...

How to log into cPanel

  There are a few ways to log into cPanel. The best way depends on if your domain name has...

Viewing your disk space usage.

Login to cPanel, and under Files, click Disk Space Usage. This page shows you where disk space...

Powered by WHMCompleteSolution