How to password protect directories?

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.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Upgrading Cpanel Pre-installed Scripts

To perform upgrade on the pre-installed scripts such as PHPNuke, AdvancedGuestBook, InvisionBoard...

How to create files and folders through the cPanel?

In order to create a new folder from your File Manager, please go to your www folder and click...

How to delete files and folders?

It is easy to delete a file, but sometimes it is not what you would like to actually do. In...

How to move and copy a file?

Sometimes you need to move files from one directory to another, or would like to make a copy...

How to rename a file?

Sometimes you want to have a newer version of a file uploaded in your webspace, while keeping...