The Apache Password Generator password protects directories on your website! Our brains have taken all the work out of it.
In the directory you wish to password protect, set up a file with the following contents:
AuthUserFile /hidden/htpasswd/file/.htpasswd
AuthGroupFile /dev/null
AuthName "Protected Pages"
AuthType Basic
The pages will now be protected against viewing. To add a user who can view the pages, create the .htpasswd file, and enter the results from our password generator into the file.