NEW CASE
Antana

We create digital solutions that work for businesses


Give us a call +38 (066) 35-14-529

Let's take the first step towards your website — write to us

Close
Tools

.htpasswd Generator

Create a login-password line for Apache HTTP Basic authentication (.htpasswd).

.htpasswd generator for Apache

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.

FAQ

What is .htpasswd?
The .htpasswd file stores logins and encrypted passwords for Apache HTTP Basic authentication. With it you can password-protect a folder or site.
How to password-protect a folder?
Create a line with this generator, save it to a .htpasswd file, and in .htaccess set AuthType Basic and the path to that file via AuthUserFile.
How secure is it?
The password is stored encrypted (bcrypt). For reliable protection use it together with HTTPS so the password is not sent in the clear.
Where is it used?
To protect admin panels, staging site versions, closed sections. The browser asks for the password before the page even loads.
Telegram Viber Call us