.htpasswd
Uwe:RQey9MOmC3cXg
*********************
.htaccess
AuthType Basic
AuthName "My Test"
AuthUserFile .htpasswd
require user valid-user
**********************
httpd.conf
Also, folks tend to use names such as .htpasswd for password
files, so this will protect those as well.
#<Files ~ "^.ht">
# Order allow,deny
# Deny from all
# Satisfy All
#</Files>
<Files .htaccess>
Order allow,deny
Deny from all
</Files>