How can I limit access to certain directories on my server by requiring a password using cPanel/WHM?

In cPanel, it is very simple to limit access to a directory on your server. This can be used to require a password in order to visit a website or to limit access to a certain directory of files accessible over the web.

To set up a password for a folder:

1. Click Password Protect Directories from the Security section.
2. Select either the document root or the web root directory and click Go.
3.In the next window, select the folder you wish to password protect. (You can also do this by going into File Manager    and right clicking on the appropriate folder.
4.Follow the directions on the Password Protect Directory page to change the security settings for the folder and create authorized users.

Was this answer helpful?

 Print this Article

Also Read

How to change Admin password in VestaCP?

To change admin password for vestaCP follow below steps.1. Login to putty by root password.2....

Webamail Access

How to log into webmail Webmail is a great feature offered by cPanel. You can access email from...

How to host the primary domain from a subfolder (.htaccess)?

Summary The public_html directory for all of its Web site files. Addon domains use sub...

How do I setup personal Nameservers?

To set up your own private nameservers, it is necessary to manually register them at the domain...

How to whitelist your IP at CPHulk

IF IP got banned by CPHulk few times and it is really not a pleasant thing knowing that you need...