nrdblg

Simple Auth With Htaccess

  1. create .htpasswd-file (not sure where that should live on a foreign server? see finding the htaccess location )
  2. Add user with md5 hashed password (http://www.htaccesstools.com/htpasswd-generator/ )
  3. add to .htaccess file:
1
2
3
4
AuthType Basic
AuthName "Password protected Area"
AuthUserFile /path/to/.htpasswd
require user ###USER_NAME###

#Apache #Hosting #Security #Development #How-To