Tsohost Help Centre

Table of Contents

Password protect directories in my cPanel account

Updated Apr 9th at 14:14 BST

To restrict access to directories on your cPanel Hosting website, use cPanel's Directory Privacy feature. Visitors may browse a restricted directory only after entering a username and password.

From your client area go to:

Services -> My Services -> click on the green "Active" button -> Login to cPanel/Control Panel

In the account Dashboard, click cPanel Admin.

In the cPanel Home page, in the Files secton, click Directory Privacy.

In the cPanel Directory Privacy page, browse to the directory you want to protect, and then click the directory name.

Select Password protect this directory, then Enter a name for the protected directory and then click Save.

Note: The name you specify is shown when a visitor tries to access the directory. It's just a label for that directory, and doesn't change the actual directory name.

In the Create User section, complete the fields and then click Save.

More info: For help, see the cPanel documentation for Directory Privacy.