Knowledgebase

KnowledgebaseCloud/VPSCloud HostingFile Management
Back to File Management

How To Password Protect A Folder


This article is for cPanel Accounts. Determine where your account is with this guide.

You can password-protect a folder within your website. You can create as many logins as needed for a protected folder.

To password-protect a folder:

  1. Login to your Control Panel (www.domain.com/cpanel)
  2. Under "Advanced Tools", click on "Password Protect Directories"
  3. This will bring up a list of all directories in your public_html or www folder.
  4. To password-protect a directory, click on the directory NAME. To open a directory (to view sub-directories) click on the FOLDER ICON to the left of the name.
  5. Once you have clicked on a folder name, you'll be presented with a configuration panel. First, check the box labeled "Directory Requires a password....". Next, Enter a protected resource name in the field (this is just what is displayed to the user when they try to access this directory). Lastly, click "Save"
  6. Next, you need to add users. Enter a username and password in the fields, then click "Add/Modify Authorized User".

You're all set! You'll see a list of "Active Users", from which you can delete or change passwords if needed.



Related Articles

Am I Responsible For Monitoring My Bandwidth Usage
Can I Add My Own CGI Scripts
Can I Point My Primary Domain To A Sub-folder
Can I Reset My Website Files
Can I Use A .htpasswd File In My Account

Can’t Find what you need?

No worries, Our experts are here to help.