Please wait while we load your page...




More Tools. . .

Use this tool for website password protection to generate all the necessary codes needed to password protect a directory via .htaccess. It outputs the lines to add to your .htaccess, and (1) encrypts the desired passwords to add to your password file in the case of File-Based Password Storage or (2) mySQL database in the case of mySQL Database-Based Type Password Storage.

We provide this tool for FREE! However, we would greatly appreciate your support so we can continue to develop more tools (online tools and downloadable tools). You can show your support by sharing / liking this tool on Facebook. You can also tweet this page to your Twitter followers and following us on Twitter.

Type Password Storage

Select type password storage for website password protection. Are passwords stored in a flat file (File-Based), or in a mySQL database. The default is File-Based (e.g., .htpasswd).


Enter the desired username(s) used to authenticate entry into the protected directory. One username per line: press ENTER after each username.


Enter the desired password(s) used to authenticate entry into the protected directory. One password per line: press ENTER after each password.

Password File Path

Absolute (full) server of password file relative to your server's root directory. Password file (e.g., .htpasswd) is a text file that is used to contain your usernames and encrypted passwords. Enter the path you will be placing your password file (which contains the usernames/passwords) on the server. It should be a non user accessible location, such as directly above your public HTML folder. This is to prevent visitors from directly viewing this file in their web browser. Not sure what to use for path? Best to ask your web host.

mySQL Host

mySQL host name. Default is localhost.

mySQL Database

Nsme of user mySQL database.

mySQL Table

Name of user mySQL database table.

Encryption Scheme

Select method of password encryption.

mySQL Username Column

Name of user mySQL database column that stores usernames.

mySQL Password Column

Name of user mySQL database column that stores passwords.

mySQL Username

mySQL database username.

mySQL Password

mySQL database password.

Live Chat Available