Created
May 15, 2014 07:46
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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