标签归档:禁止ip访问

禁止中国ip访问

修改网站根目录的 .htaccess 文件,当然你的服务器要支持 .htaccess

<Limit GET HEAD POST>
order allow,deny
# Country: CHINA
# ISO Code: CN
# Total Networks: 1,616
# Total Subnets:  210,789,888
deny from 58.14.0.0/15
deny from 58.16.0.0/16
deny from 58.17.0.0/17
deny from 58.17.128.0/17
deny from 58.18.0.0/16
deny from 58.19.0.0/16
deny from 58.20.0.0/16
deny from 58.21.0.0/16

继续阅读