Skip to content

Instantly share code, notes, and snippets.

@markhowellsmead
Created June 19, 2014 08:01
Show Gist options
  • Save markhowellsmead/12664b196ec91217862c to your computer and use it in GitHub Desktop.
Save markhowellsmead/12664b196ec91217862c to your computer and use it in GitHub Desktop.
# Protect folder using htpasswd file
# www.mhm.li | m@mhm.li | 6/2014 | Free use, no credit required
AuthName "Private area"
AuthType Basic
AuthUserFile /path/to/webroot/.htpasswd
AuthGroupFile /dev/null
require valid-user
Order allow,deny
Allow from xxx.xxx.xx.xxx
Allow from xxx.xxx.xx.xxx
satisfy any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment