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.
Your website's hosting control panel user name and password.
1. Login to Cpanel.
2.Select password protected directory under security feature.
3.Please select the folder you wish to protect by clicking on its name.3.Name the protected directory .
4.Enter the username and password.
5.Click add/modify authorized users.
6. So now When a user accesses the protected directory through the web, they will be prompted to enter a username and password. The name that you choose for the protect directory will appear as well.