How to Protect a Directory with a Password

You can password protect directories (folders) via the cPanel, protecting all the files within the password-protected folders.

Note: At this time, the cPanel can only protect directories, not individual files. Any file that needs protection can be placed in a protected directory. This also does not protect the directories that can be accessed locally or through FTP, SFTP, or Web Disk.

To password-protect a directory:

  1. Log in to your cPanel.
  2. Look for the Files section, then click on the Directory Privacy icon.
  3. Locate the name of the directory you wish to password protect.
  4. Click on your directory's Edit button.

  5. Put a checkmark on Password protect this directory.
  6. Enter a name for the selected directory. It is important to note that this serves as the label of that directory. It does not change the directory's actual name.
  7. Click on the Save button.
  8. A confirmation page will appear. Click Go Back
  9. You will then need to create a User that can have access to this directory.
  10. Fill in the UsernameNew Password, and Confirm Password boxes. You can utilize the Password Generator button to generate a strong password.
  11. Click the Save button.

 

How To Check if Directory Has Been Password Protected?

To ensure your directory has been password protected, launch your browser and view the directory.

If the browser prompts you to log in, then your folder has been password protected. This example shows the public_html (the domain name, example.com) has been accessed in a browser. When accessed, a pop-up box will show up.

  • cpanel, password, password protect, protect folder
  • 74 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

Access to the Control Panel (cPanel)

cPanel is a web hosting account management toolYou only get one username per cPanel. If you...

Access to the Easy Web Site Builder

To access to the Easy Web Site Builder that contains over 1000 ready-to-use templates are now...

How to Check Bandwidth

Step 1. Access a Short Summary of Bandwidth Usage When you log in, you can immediately see the...

Creating a Subdomain

How to Create a Subdomain Log into cPanel. In the Domains section, click on the Subdomains...

How to Configure Dreamweaver for FTP

How to Configure Dreamweaver for FTP If you are using Dreamweaver as your site designer, you...