Password protection allows you to require a username and password when users attempt to access your site from the web. This is useful if you need to limit access to a certain part of your site.
How to Password Protect Directories
Click the Password Protect Directories tool from your cPanel main page.
A list of the directories on your account will appear.
Select the directory you wish to limit access to. In the new page that opens, first input a username and a password for your user. Then click the Add Or Modify The Authorized User button.
Then to password protect the desired folder, enable the Password protect this directory option and type in some text that will show up to the visitor when they access the protected part of the website in the Enter a name for the protected directory field. Finally, press the Save button.