Password Protect Directories Icon

You can password protect directories (folders) via cPanel, protecting 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 a directory:

  1. Log into your cPanel and 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.

  • 0 Users Found This Useful
Was this answer helpful?

Also Read

How to Disable Anonymous FTP

Anonymous FTP is disabled by default for the security of your account. We do not recommend...

How to Generate/Download a Full Backup

All of our accounts are able to create and keep a full backup of their hosting package. This is...

Backup File Types - cPanel

When you have a backup file, you will need to know what type of backup it is so you can know what...

public_html folder

The public_htmlfolder is the web root for your primary domain name. This means that public_html...

How to Set Up an Anonymous FTP Message

An anonymous FTP message is displayed when an anonymous FTP user connects to an FTP account. This...