Apache中禁止IP段,在httpd.conf的源码示例:

Alias /phpMyAdmin "F:/APMServ/www/phpMyAdmin"
<Directory "F:/APMServ/www/phpMyAdmin">
 AllowOverride None
 Options Indexes FollowSymLinks Includes
 Order deny,allow
 Deny from all
 Allow from x.x.x.x
 Allow from x.x.x.x
</Directory>

Order 控制执行顺序,deny控制禁止,allow控制允许。举一反三吧亲。

Related Posts: Apache中禁止IP段,在httpd.conf中的写法 :