apache 遏止某段IP访问
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>