Directory Privacy - password protected directory

If you activate and configure this option in your cPanel, you can restrict access to a directory of your website.

You can do this as follows:

1. Log into your cPanel

2. In the Files section, click on Directory Privacy:

3. In the next section, you can see all the folders that are located in the root of your hosting package. Click on the name of the directory you want to password protect. If you want to see and protect a folder that is inside of listed you need to click on the icon next to the folder name (eg. You want to protect a folder inside / public_html directory)

4. To protected folder with a password, in the next section, you must mark the option Password Protect this directory. In the Enter a name for the protected directory field, enter the name that will appear in the header field for login later in the approach. After that, save the settings by clicking the Save button.

To add a user, and that someone could access, you need to fill the Create User section. Enter Username, and in the fields New Password and Confirm Password, enter the password.

After adding a new user, save the setting with one click on button Save.

How to remove the protection?

Protecting of the directory can be removed by unchecking Password Protect this directory and save a new state by clicking on the button Save.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

CPU Usage

Shared ServersAdriaHost allows a maximum of 25% CPU usage limit. You may exceed this limit for no...

How can I make a stronger password?

How can I make a stronger password?Password SelectionA good password is easy to remember, but...

How Can I Prevent Hacking?

The most important thing to do is keep your passwords a secret. If you must give a password to...

SQL injection, insertion

SQL injection is an attack where malicious code is passed to an SQL Server for execution. The...

How to Handle the Google Attack Page

When you see the dreaded Google Attack Site warning, you should immediately submit a ticket to...