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

.htaccess Tutorial

Summary In this tutorial you will find out about the .htaccess file and the power it has to...

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

What is the difference between Local, Backup, and Remote Mail Exchanger in cPanel?

These are options for the DNS zone for a domain in cPanel. Essentially, this tells cPanel how you...

URL Redirect/Rewrite using the .htaccess file

Summary By default your website can be accessed with both www.example.com and example.com....

How Can I See My Total Disk Space and Bandwidth Available on My Reseller Account?

If you would like to check the number of files, disk space or how much bandwidth you are using on...

Powered by WHMCompleteSolution