CentOS and Apache – password protect with .htaccess and .htpasswd

To protect /stats sub-directory:
Edit /home/.htpasswd file

user:encryptedpassword

Add .htaccess file to /home/usr/usrname/stats/.htaccess

AuthUserFile /home/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
require user usrNAMEhere

===