Password protecting a directory restricts access to certain parts of your website by requiring visitors to enter a username and a password. This password process is also referred to as a type of “authentication” process. It allows you to require a username and password to access a folder within your site from the web.
1. Log in to your control panel, go to the security section, and click on the ‘Password Protect Directories’ icon.
2. We are going to password protect the /demo directory. Click the demo link.
3. Select the check box to protect this directory with a password, enter a name for this protected directory, and then click the save button. The directory is now protected, and requires a password to enter it via a browser. We must therefore create at least one user, and assign them a password to access the directory.
4. To create a user, go back and scroll down. Under the create user column, fill in your username, password and then click on the ‘add/modify authorized user. When you are done, the protected directory now has one user who has access to it. Repeat this process for each additional user you want to grant access for.
5. You can now see the active user for this directory. You can return to this screen at any time, to modify existing users passwords, add more users, or delete users. And you are done!