This cPanel interface allows you to protect specific directories in your cPanel account’s files.

Once you have enabled this feature for a directory, when users attempt to view that directory via a website, the system prompts them to log in.

There are a couple of things to keep in mind.

This feature modifies htaccess and htpasswd configurations in order to restrict access to files on your websites.

But it does not protect directories that users access via FTP, SFTP, Web Disk, or other services, or when they access files locally.

To use this interface, select a directory to manage.

 

To select a directory, click the desired directory’s name.

To view and select subdirectories, click the parent directory’s folder icon (). Then, click the desired subdirectory name.

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.

Once you have selected directory to be password protected, perform the following steps:

 

1. Select the "Password protect this directory" checkbox.

To remove password protection from a directory, deselect the Password protect this directory checkbox.

Then, click Save.

2. Enter a display label for the directory in the " Enter a name for the protected directory" text box.

This name only functions as a label for the directory.

Do not confuse it with the directory’s actual name.

3. Click Save.

A confirmation message will appear.

Click Go Back to return to the directory’s configuration.

 

Now the most important part of the process which without, this won't work.

After going through the process above, you must create a user that can access this directory.

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. Click Save.

A confirmation message will appear. Click Go Back to return to the directory’s configuration.

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

Then, click Save.

 

 

If you look at the Authorized Users menu, it will list 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.

 

Hjalp dette svar dig? 2 Kunder som kunne bruge dette svar (5 Stem)