首先 Apache 需要支持 .htaccess ,然后编辑要屏蔽的 IP,这里有好几种方式可以灵活的使用:
order allow,deny
deny from 110.85.104.152
deny from 110.85.113
deny from 110.85.113.0/24
deny from 110.87
deny from 110.87.0.0/16
deny from 110.86.167.210 110.86.184.181
deny from 110.86.185.0/24 110.86.187.0/24
allow from all
把以上IP换为要屏蔽的相应IP即可