BasicAuth

Absolute server path
Will be encrypted

.htaccess

.htpasswd

© 2025 Luka Uzel — Open sourced under the MIT License.

loCode V1.0.0 built with ❤️ using Symfony, Alpine.js, Bootstrap and Docker

Thu. 5 March 2026 09:59

Help

Basic Authentication Generator

This tool helps you generate Apache Basic Authentication configuration. Fill in the form to create both the .htaccess snippet and .htpasswd file content.

Fields:

  • Path to .htpasswd: The absolute server path where the .htpasswd file will be located (e.g., /var/www/html/.htpasswd)
  • Username: The username for basic authentication
  • Password: The password that will be encrypted using Apache's APR1-MD5 algorithm
  • Auth Realm: The authentication realm message shown to users

Additional Options:

  • Allow Images: Allow image files to bypass authentication (useful for email clients)
  • Allow Localhost: Allow access from localhost without authentication
  • Allow Crawlers: Allow specific search engine crawlers to bypass authentication