日期:2014-05-16  浏览次数:20703 次

apache 阻止某段IP访问

可以使用deny和allow来限制访问,比如要禁止202.202.202.xx网络的用户访问:

?

<Directory /www/htdocs>

order allow,deny

allow from all

deny from 202.202.202.0/24

</Directory>

?

?

?

?

?