Htaccess Authentication

Password protect one or more directories with Basic HTTP Authentication using .htaccess. A .htpasswd file will be used to store login details. Use the .htpassswd generator to create entries in the .htpasswd file.

This name will be displayed in the login box when a user access your protected area for the first time.

Enter the full path to your .htpasswd file. If you dont know the path, then take a look at my article on how to find the full path to a file using PHP.