cPanel 10 Tutorial: Pass protected directories

How to use Hotlink Protection

You can limit access to certain resources of your website by password protecting the directories they are in.

To do that, please select the [Password Protected Directories] icon from your cPanel main page.

A list of the Internet accessible directories on your account will appear.

Select the directory you wish to limit access to. In the new page, please create a username and a password for your user. Select a name that will appear in the login screen and click the Directory requires a password check box to activate the protection.

Please note that you have to create a directory before you enable the password protection for it. Also, using one and the same directory for the purpose of both password protected and FTP storage is nor recommended.

It is also important to add that password-protecting your webroot (the www directory) will lead to inability of your website to be displayed.