Generate Apache .htpasswd entries instantly with APR1, bcrypt, or SHA-1.
Paste this into your .htpasswd file.
To protect a specific folder, place a .htaccess file inside the directory you want to secure.
The rules defined in this file apply to that directory and all of its subdirectories.
A typical .htaccess configuration looks like this:
The corresponding .htpasswd file should be stored at the location specified by the
AuthUserFile directive, for example /path/to/.htpasswd.
This file contains the usernames and encrypted passwords used for authentication.
A typical .htpasswd file looks like this: