We create digital solutions that work for businesses
Security and access
You may also like
Login and password for Apache .htpasswd.
The simplest server-level protection. It works before the request even reaches the site.
The simplest way to password-protect a folder or a staging site is Apache HTTP Basic authentication. Enter a login and password, and the generator creates a ready line for the .htpasswd file with the password hashed using bcrypt — a modern, strong algorithm. The password is never stored in plain text on the server.
How to apply: save the line to a .htpasswd file outside the public folder, and in the .htaccess of the target directory add AuthType Basic, AuthName, AuthUserFile with the file path and Require valid-user. The browser asks for the password before the page even loads. Perfect for protecting admin panels, dev versions and private sections.