Free tool · runs in your browser

.htaccess Password Protection Generator

A second login in front of the WordPress backend costs attackers more than any plugin: whoever fails the basic-auth prompt never even sees wp-login.php. The generator creates both files including a correctly hashed password.

Directory Protection Generator

Generate .htaccess & .htpasswd

Add users, copy both files, done. The password is hashed locally and never leaves your browser.

What do you want to protect?

Your hosting panel shows the real path – or a PHP file containing <?php echo __DIR__;

Users

    Username and password never leave your browser – the hash (APR1-MD5, htpasswd-compatible) is generated locally via JavaScript.

    Everything is generated locally in your browser. Nothing you enter is transmitted to our server.

    More tools