如何禁止360爬虫访问?centos 7系统

sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="180.153.232.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="180.153.234.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="180.153.236.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="180.163.220.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.101.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.102.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.103.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.10.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.12.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.13.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.14.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.15.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.16.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.17.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.46.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.48.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.49.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.50.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.51.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.52.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.53.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.54.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.55.0/24" drop"
sudo firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="42.236.99.0/24" drop"

然后记得firewall-cmd --reload

才会生效。

以上是在360站长官网找到的360爬虫的ip段,全部都禁止连接  避免爬虫把服务器搞挂了。

毕竟360能给你带来的流量实在是太有限了。

相关推荐
©️2020 CSDN 皮肤主题: 技术黑板 设计师:CSDN官方博客 返回首页