Skip to content

Instantly share code, notes, and snippets.

@kwd
Forked from jnaskali/gist:2000221
Created July 20, 2012 08:20
Show Gist options
  • Save kwd/3149555 to your computer and use it in GitHub Desktop.
Save kwd/3149555 to your computer and use it in GitHub Desktop.
htaccess: allow ip through htpassword protection
Deny from all
Order deny,allow
AuthType Basic
AuthName “Restricted”
AuthUserFile /path_to_password/.htpasswd
Require valid-user
Allow from 192.168.1.10
Satisfy Any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment