htaccess Password Generator is a simple online form that you can use to generate the codes to password-protect your site. To use this form, you need to insert your username, password, path to your . htaccess file, and the names of the files to be protected. It will then generate a set of codes that you can add to your htaccess file, and another set of codes that you want to save as a .htpasswd text file and upload it on your server.