I thought I’d pass this link along. I needed a refresher on password protecting a directory on a Linux-type server.
This site gave me an online form that generated both the .htaccess and .htpasswd files. It then tells you exactly how to create them and then where to upload them.
The only tricky thing to know is the path where to point to your .htpasswd file. If you don’t know, poke around your hosting provider. They should be able to tell you.