.htpasswd and .htaccess generator

 
 
This tool generates the necessary .htpasswd and .htaccess files to protect a directory from unauthorized access on your website.

Show demonstration password protected directory using .htpasswd and .htaccess files.
For the demonstration you can use the following authentication credentials:
  • username=john.smith, password=hissecret
  • username=jane.doe, password=hersecret
More information about .htpasswd and .htaccess, see quick guide: Password protecting directories using .htpasswd and .htaccess files.



Input for .htpasswd file:

    Enter on each separate line a username: Enter on each line the corresponding password:
Username(s) / Password(s) *:  
Password encryption used *: Help MD5      APR1-MD5

Input for .htaccess file:
Auth Name *: Help
.htpasswd file location *:
End with a trailing slash.
Help
 
* = required    
 


.htpasswd generator output:






.htaccess generator output: