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.
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to create a cPanel user account?

To create a new cPanel account go to WHM >> Account Functions >> Create a New...

How can I limit the number of emails a domain can send out per hour?

Click on the "Tweak Settings" link under "Server Setup". Within the "Mail" section is a text box...

How do I prevent SSL Certificate Warnings when accessing cPanel?

All cPanel servers come with self-signed certificates configured to secure the control panel as a...

How do I create a MySQL database and user in cPanel/WHM? How do I connect them?

To create a MySQL database and user, log into the cPanel interface for the desired domain and...

FTP - Uploading the Website

There are many ways that you can transfer files and folder to and from your hosting account. We...

Powered by WHMCompleteSolution