Back to dashboard

.htaccess Generator

Protect directories with password hashes and IP filters for LiteSpeed and Apache.

bcryptIP filterApache 2.4

Configuration

Protection mode

Must be the full server path. Files starting with a dot are not served.

.htaccess

# Click "Generate" to create the configuration.

.htpasswd

Hashes are created on this server and are never stored. Every run uses a new random salt.

LiteSpeed: Make sure .htaccess overrides are enabled (cPanel/LiteSpeed: "AllowOverride" or "Auto Load from .htaccess"). bcrypt is the recommended algorithm.