Basic auth with .htpasswd and .htaccess

AuthType Basic
AuthName "Restricted area"
AuthUserFile /home/data/site/.htpasswd
Require valid-user