Skip to content

Instantly share code, notes, and snippets.

@markhowellsmead
Created May 15, 2014 07:46
Show Gist options
  • Save markhowellsmead/53392699a6adcd8a1f6e to your computer and use it in GitHub Desktop.
Save markhowellsmead/53392699a6adcd8a1f6e to your computer and use it in GitHub Desktop.
htaccess protection, with open access from specific IP addresses or IP address ranges
AuthUserFile /path/to/.htpasswd
AuthName "Restricted Access"
AuthType Basic
require user [username]
satisfy any
deny from all
allow from 192.168.1.
allow from 10.1.1.45
allow from 172.16.5.106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment