1.Log into the cPanel and scroll down until you see "Password Protect Directories". and click on it
2.Click on the directory that you wish to setup the password protection on and verify that you wish to setup the password protection and also on what directory.
3.Click the box for "Password protect this directory" and then give the directory a name and click Save.
4.Cpanel will confirm and verify now that the directory has been created. Click on "Go Back" to proceed.
5.Now create a user and a password.
6.Click on "Add/modify authorized user".
7.Cpanel will confirm and verify now that the user has been created. Click on "Go Back" to proceed.