Skip to content

Instantly share code, notes, and snippets.

@jnaskali
Created March 8, 2012 10:27
Show Gist options
  • Save jnaskali/2000221 to your computer and use it in GitHub Desktop.
Save jnaskali/2000221 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