This is the bare bones basics to protect a web page or series of pages on an Apache web server.
.htaccess file
AuthName "SectionName" AuthType Basic AuthUserFile /full/path/to/.htpasswd Require valid-user
Replace SectionName with the name of what you are protecting (in and below the directory that you are putting the .htaccess file in. Example: [...]
