Htaccess whitelist ip

From CarloHamalainenWiki

Jump to: navigation, search

To whitelist some IP addresses using a .htaccess file:

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "blah blah"
AuthType Basic
<LIMIT GET>
order deny,allow
deny from all

# whitelist:
allow from a.b.c.d
allow from w.x.y.z
Personal tools