How to password protect a directory in cPanel?



This is done using the Directory Privacy feature in cPanel.

When you add password protection to a directory, you provide a name for the directory that will appear in users' web browsers when they are prompted for a username and password. Then you create users and passwords to specify who can access the directory.

To add password protection to a directory, follow these steps:
  1. In the FILES section of the cPanel home screen, click Directory Privacy.  
  2. Click the name of the directory to protect.
  3. In the "Security Settings" section, select the Password protect this directory check box.
  4. In the Enter a name for the protected directory text box, type a name for the protected directory.
  5. Click Save.
  6. In the "Create User" section, type a username in the Username text box.
  7. In the New Password text box, type the user's password.
  8. Retype the user's password In the Confirm Password text box.
  9. Click Save.  

Related Articles

How to setup hotlink protection in cPanel?

CPanel can prevent hotlinking by only allowing named sites (such as your own web site) to access files on your site. Click on the HotLink Protection button on the Cpanel home page. Enter any...

How to Disable HotLink Protection using cPanel?

Disable hotlink protection when you no longer think that another web site owner is directly linking to your files. Click on the HotLink Protection button on the home page. Click on the Disable...

What is HotLinking?

Hotlinking takes place is when another web site owner links directly to one or more of your images or multimedia files and includes it on their web page. Not only is this theft of your intellectual...

How to use the IP Blocker in cPanel?

The IP Blocker enables you to block access to your web site from specific IP addresses. This is useful to remove nuisance surfers who use a large amount of bandwidth or to prevent hotlinking to...

How to remove an IP from cPanel IP Blocker?

Remove a blocked IP address when you no longer need to prevent access from that IP address. Click on the IP Deny Manager button on the Cpanel home page. Click on the required IP address from the...