Categories

How to set Directory Privacy in cPanel

Directory Privacy allows you to protect a specific directory with a password, to prevent unauthorized users from accessing the directory through a web browser. Let’s look at setting this up on cPanel.

First, login to cPanel control panel.

Now navigate to Directory Privacy in the Files section.

You’ll now see a list of the directories in your hosting account.

To select a directory to set directory privacy on, just click the name of the directory.

Now you need to fill in the name for the protected directory, as well as the login details for the new user that should have access to the private directory, when they access it through their web browser.

Once you’re done, click Save to finish saving your changes.

When you attempt to access this directory from a web browser, you’ll now be prompted the enter the username and password for the user that you created, before being able to access the directory.

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents

Leave a Reply

Your email address will not be published. Required fields are marked *