We have a new documentation site for cPanel & WHM! You can find our new documentation site at docs.cpanel.net.

We will continue to maintain our API documentation on this server.

Page tree
Skip to end of metadata
Go to start of metadata

This document is for a previous release of cPanel & WHM. To view our latest documentation, visit our Home page.

For cPanel & WHM 11.48

(Home >> Security >> Password Protect Directories)


This feature allows you to protect certain directories of your account. If you enable this feature, the system prompts users for a username and password when they attempt to view content in a protected folder.

Configure a password for a directory 

To password protect a directory, perform the following steps:

  1. Select the directory that you wish to protect.

    • Click the appropriate folder icon () to navigate to a different folder.

    • Click the desired folder's name to select it.


      A protected directory's subdirectories inherit their parent directory's password protection.

  2. Select the Password protect this directory checkbox.
  3. Enter a display label for the directory in the Name the protected directory text box.


    This name is only a label for the directory, and you should not confuse it with the directory's actual name.

  4. Click Save.

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

Create a user

To create an authorized user for the 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.


    • The system grades the password that 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 you met the required password strength.
    • Click Password Generator to generate a strong password. For more information, read our Password Generator documentation.
  3. Click Add Or Modify The Authorized User.


To change the authorized user's password, enter the user's information again in the Create User section of the interface, but enter a different password for the user.

Remove password protection

To remove password protection from the directory, deselect the Password protect this directory checkbox in the Security Settings section of the interface and click Save.


  • No labels