Creating a simple htaccess file
htaccess files control access to directories on your webserver. They're what makes Apache prompt a user for a password to enter part of your site. Let's say you have a directory called "members" - to password protect it, you put a file named .htaccess (the prefix "." is important!) in that directory, and then using the command "htpasswd" like so:
htpasswd -c .htpasswd SomeUserName
Where .htpasswd is the path to where you want the .htpasswd password file to go (or where it is already- if it exists, htpasswd will add to it), and SomeUserName is the username you want to create a password for.
Remember where you put the .htpasswd file (usually in the directory you want to protect)- you'll need it when creating an htaccess file (below).
Using the javascript app below, you can easily create your htaccess file. It will put the contents of the htaccess file in a new window, copy and paste that into your favorite text editor (pico, whatever), and put that in the directory you want to protect.