Password Protect a File

In some cases, you might need to password protect a certain file(s). You can do just that by following the instructions below. Create a file named .htpasswd and place it above your root directory, so visitors can’t access it. Example of the root directory...