Directory Privacy on cPanel

Directory-Privacy-on-cPanel

Share This Post

Overview

This interface allows you to protect specific directories in your cPanel account’s files. After enabling this feature for a directory, when users attempt to view that directory via a website, the system prompts them to log in.

Note:

  • This feature modifies htaccess and htpasswd configurations to restrict access to files on your websites.
  • This feature does not protect directories users access via FTP, SFTP, Web Disk, or other services or when they access files locally.

Select a directory

To use this interface, select a directory to manage.

  • To select a directory, click the desired directory’s name.
  • Click the parent directory’s folder icon (). Then, click the desired subdirectory name.
  • Note:
    • A protected directory’s subdirectories inherit their parent directory’s password protection.
    • The lock icon () indicates that Directory Privacy configurations already exist for that directory.

Security Settings

Important:

You must perform these steps and click Save to enable this feature.

To password protect the selected directory, perform the following steps:

  1. Select the password to protect this directory checkbox.
  2. Note:
  3. To remove password protection from a directory, deselect the password protect this directory checkbox. Then, click Save.
  4. Enter a display label for the directory in the Enter a name for the protected directory text box.
  5. Note:
  6. This name only functions as a label for the directory. Please do not confuse it with the directory’s actual name.
  7. Click Save. A confirmation message will appear. Click Go Back to return to the directory’s configuration.

Important:

After you complete this process, you must create a user that can access this directory.

Create User

To create an authorized user for the selected directory, perform the following steps:

  1. Enter the desired username in the Username text box.
  2. Enter and confirm the new password in the appropriate text boxes.
  3. Note:
  • The system evaluates the password you enter on a scale of 100 points. 0 indicates a weak password, while 100 indicates a very secure password.
  • Some web hosts require a minimum password strength. A green password Strength meter indicates that the password is equal to or greater than the required strength.
  • Click Password Generator to generate a strong password. 
  1. Click Save. A confirmation message will appear. Click Go Back to return to the directory’s configuration.

Note:

To change an existing user’s password, enter the user’s information and the new desired password. Then, click Save.

Authorized Users

The Authorized Users menu lists the directory’s existing authorized users. To delete a user, select that user and click Delete User. A confirmation message will appear. Click Go Back to return to the directory’s configuration.

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Directory-Privacy-on-cPanel
cPanel

Directory Privacy on cPanel

Overview This interface allows you to protect specific directories in your cPanel account’s files. After enabling this feature for a directory, when users attempt to

Read More »