To set a password to enter the folder, go to "Directory Privacy" in your cPanel:
Specify a folder for setting authorization.
To go to any folder, click on the folder icon.
To set authorization on a folder, click "Edit":
Enter authorization data for the user request to this folder and click "Save"