运维网's Archiver
论坛
›
apache
› apache 阻止某段IP访问
浪人
发表于 2017-1-8 08:43:49
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>
页:
[1]
查看完整版本:
apache 阻止某段IP访问