#! /bin/bash
# Aliyunbot
/sbin/iptables-i input-m iprange--src-range 110.75.160.0-110.75.191.255-p tcp--dport 80-j REJECT
#Qihoo
/sbin/iptables-i input-m iprange--src-range 65.48.172.0-65.48.172.255-p tcp--dport 80-j REJECT
#Sougo
/sbin/iptables-i input-m iprange--src-range 220.181.0.0-220.181.255.255-p tcp--dport 80-j REJECT
#Soso
/sbin/iptables-i input-m iprange--src-range 124.114.0.0-124.115.255.255-p tcp--dport 80-j REJECT
#Yahoo!
/sbin/iptables-i input-m iprange--src-range 202.160.176.0-202.160.191.255-p tcp--dport 80-j REJECT
/sbin/iptables-i input-m iprange--src-range 203.209.224.0-203.209.255.255-p tcp--dport 80-j REJECT
/sbin/iptables-i input-m iprange--src-range 67.195.0.0-67.195.255.255-p tcp--dport 80-j REJECT
#Youdao
/sbin/iptables-i input-m iprange--src-range 61.135.0.0-61.135.255.255-p tcp--dport 80-j REJECT
#msn
/sbin/iptables-i input-m iprange--src-range 207.46.0.0-207.46.255.255-p tcp--dport 80-j REJECT
This article is from the It Dick thread blog, so be sure to keep this source http://68686789.blog.51cto.com/10438688/1750598
Other spider IP blocking scripts except Baidu and Google