See how to use htaccess Generator
A secure website is essential for both your peace of mind and the peace of mind of your clients or customers. The easiest way to password protect your apache-based website is to use .htaccess password. This utility will generate the correct files (.htaccess and .htpasswd) based on the user name and password you supply. Just input the username and password you require into the htaccess generator, plus the exact path of the directory you want to protect.