对搜索引擎说不

又一次被搜索引擎的蜘蛛害惨了……

这次惨到无以复加,机房认为服务器遭到攻击, 不做任何通知的情况下封掉了IP,以至于我以为服务器挂掉了,急冲冲的跑去机房,检查了1小时后才发现原来这个IP已经不能上公网了。

于是和机房交涉;

机房的理由很充分:此IP遭到攻击,所以封掉了;

我的理由很简单:既然是被攻击,那么总要查出是谁在攻击吧?IP封掉了,我怎么查谁在攻击?

等了半小时,IP总算解封;

检查以后发现,这次是百度的蜘蛛搞的破坏;因为有大量的流量来自于百度, 一直以来对百度的蜘蛛持宽容态度,但是这次完全不能容忍了,于是决定,封!

把国内搜索引擎蜘蛛统统的封杀,百度、sogou、中搜,还有其他不知名的,这其中还包括了Yahoo的;

以前整理了一份IP列表,不知道被我放到哪里去了,找不到了,整理一份新的存档:

ipfw add deny ip from 61.135.145.1/24 to any
ipfw add deny ip from 202.108.1.1/24 to any
ipfw add deny ip from 202.108.2.1/24 to any
ipfw add deny ip from 202.108.3.1/24 to any
ipfw add deny ip from 202.108.4.1/24 to any
ipfw add deny ip from 202.108.22.76 to any
ipfw add deny ip from 202.96.51.149 to any
ipfw add deny ip from 72.30.101.1/24 to any
ipfw add deny ip from 72.30.102.1/24 to any
ipfw add deny ip from 72.30.103.1/24 to any
ipfw add deny ip from 72.30.104.1/24 to any
ipfw add deny ip from 72.30.107.1/24 to any
ipfw add deny ip from 72.30.110.1/24 to any
ipfw add deny ip from 72.30.111.1/24 to any
ipfw add deny ip from 72.30.128.1/24 to any
ipfw add deny ip from 72.30.129.1/24 to any
ipfw add deny ip from 72.30.131.1/24 to any
ipfw add deny ip from 72.30.132.1/24 to any
ipfw add deny ip from 72.30.133.1/24 to any
ipfw add deny ip from 72.30.135.1/24 to any
ipfw add deny ip from 220.173.192.32 to any
ipfw add deny ip from 202.108.22.144 to any
ipfw add deny ip from 202.115.130.58 to any
ipfw add deny ip from 220.173.192.32 to any
ipfw add deny ip from 202.160.180.1/24 to any