见:
但是我这样做不行,改了一下后:
order deny,allow
deny from all
allow from 90.14.212.42
这样就可以,好像deny, allow 的顺序要和后面deny,allow的顺序相同
甚至你可以这样写:
order deny,allow
deny from all
allow from 12.345.67.890
allow from 890.67.345.12
Satisfy any
Order allow,deny
Deny from all
Allow from 127.0.0.1
AuthType Basic
AuthName "private"
AuthUserFile /var/www/phpexperts.pro/.htpasswd
AuthGroupFile /dev/null
Require valid-user
IP Alone:
Order allow,deny
Deny from all
Allow from 127.0.0.1
order deny,allow
deny from all
allow from 90.14.212.42
这样就可以,好像deny, allow 的顺序要和后面deny,allow的顺序相同
甚至你可以这样写:
order deny,allow
deny from all
allow from 12.345.67.890
allow from 890.67.345.12
如此可以添加多个ip
评论
发表评论