Learn how to limit access to a certain part of your site by requiring a user name and password to access a folder or folders from the web. Password protection allows you to require a username and password to access a folder within your site from the web.
Protecting a folder will protect all folders within that folder. Also, you will need to create users who can access the protected directory. You can give the password protected directory any name, no matter what the actual directory is called.
Login to cpanel account, home page will be opened then go to the security section and click on password protect directories.
After clicking on it you will be redirected to
Choose your directory to be opened or you can select your root folder and then click on the go button.
After clicking you will be redirected to
This option will allow you to require a username and password to access a folder or folders from the web. This can be very useful when you need to limit access to a certain part of your site.
Please select the folder you wish to protect by clicking on its name.
Open a folder by clicking on its icon.
If you click on the public_html/ ( current folder) then you will be redirected to
Making this username and password will in authorizing the account and the directory will only be opened with the prescribed username name and password.