Enter your desired login name and password to generate a htpasswd with the option to download the file.
What is This tool?
It is a simple free online htpasswd generator that you can use to create htpasswd files to secure directories on Apache servers.
Once created you have the option to copy the code with a SHA1 encrypted password into an existing .htpasswd file or download a new file to your computer.
What is a .htpasswd file and how do I use it?
Apache HTTP servers come with the functionality to make certain directories on your web server password protected. A case use for this could be when you have a directory that is public facing but only you should be able to view its contents.
Protecting a folder with Apache is done from within a .htacess file. Create a .htacces file within the directory would like to protect e.g.
AuthType Basic AuthName "Restricted Content" AuthUserFile /etc/apache2/.htpasswd Require valid-user
Note: AuthUserFile should point to where your htpasswd file is.
You can also add multiple users into your .htpasswd file like so: