吐槽迅雷……

先算一下:

24×60×60×30=2592000s
2592000×2=5184000MB
5184000/1024=5062.5GB

最近用一直闲置的enzuVPS做了个下载站,用于方便我维护,但是最近发现流量有点异常。

平均两天左右就可以制造出一个80MB的日志,而我每次看的时候网卡流量都是2MB/s左右(这还是我限制后的结果)。

虽然美国的VPS口子大,但也不能便宜了这帮使用迅雷的兔崽子,而且我的本意就是只给朋友用(部署VPS等),因为他们用的都是美国的,所以到底应不应该屏蔽迅雷就很明显了,怀着这个念头找了下资料,迅雷的UA分别有:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; )
Mozilla/5.0  (compatible; MSIE 6.0; Windows NT 5.0)
Mozilla/4.0 (compatible; MSIE  6.0; Windows NT 5.0; .NET CLR 3.5.20706)
Mozilla/4.0 (compatible;  MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

我总觉得,迅雷的UA应该不止这些,或许他调用的是ie,UA即为IEUA(这个只是怀疑,真实性有待考证)。

不过这个真心无所谓,VPS最次也是IE7,IE6的滚蛋,即使你不用迅雷我也不想给你下(做网站的都明白……)

下面是我写的屏蔽语句:

#干死迅雷....
#Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; )
if ($http_user_agent ~ "Mozilla/4.0\ \(compatible;\ MSIE\ 6.0;\ Windows\ NT\ 5.1;\ \)")
{ 
	return 444; 
}

#Mozilla/5.0  (compatible; MSIE 6.0; Windows NT 5.0)
if ($http_user_agent ~ "Mozilla/5.0\ \(compatible;\ MSIE\ 6.0;\ Windows\ NT\ 5.0;\)")
{ 
	return 444; 
}

#Mozilla/4.0 (compatible; MSIE  6.0; Windows NT 5.0; .NET CLR 3.5.20706)
if ($http_user_agent ~ "Mozilla/4.0\ \(compatible;\ MSIE\ 6.0;\ Windows\ NT\ 5.0;\ .NET\ CLR\ 3.5.20706\)")
{ 
	return 444; 
}

#Mozilla/4.0 (compatible;  MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
if ($http_user_agent ~* "Mozilla/4.0\ \(compatible;\ MSIE\ 6.0;\ Windows\ NT\ 5.1;\ SV1;\ .NET\ CLR\ 1.1.4322;\ .NET\ CLR\ 2.0.50727\)") {
	return 444;
}

我用的是Nginx,据有关资料描述,使用方法是这样的:

1.将其保存至/etc/nginx/getout.conf
2.在网站配置文件中使用include包含至配置中

我的配置是:

server { # Generated by VPSMate
    limit_rate 2048k;
    limit_conn addr 2;
    listen 80;
    server_name download.myluoluo.com;
    charset gbk;
	#封锁迅雷,开始
	include /etc/nginx/agent.conf;
    #封锁迅雷结束
    index index.html index.htm index.php;

    location / {
        root    /home/wwwroot/download.myluoluo.com;
        autoindex   on;
    }

}

不过事与愿违,被屏蔽后流量确实为0了,但是现在又满了,同时出现了以下UA:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 4.7)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; BRI/2; Media Center PC 6.0; InfoPath.3)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

希望认识的朋友能解释下……

日志为:

119.84.136.197 - - [27/Mar/2013:07:07:12 +0300] "GET /isos/Other/laomaotao2013.rar HTTP/1.1" 503 608 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 4.7)" "-"
202.100.202.110 - - [27/Mar/2013:07:07:12 +0300] "GET /isos/Other/laomaotao2013.rar HTTP/1.1" 206 27443 "http://download.myluoluo.com/isos/Other" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0)" "-"
117.87.1.4 - - [27/Mar/2013:07:07:12 +0300] "GET /isos/Other/laomaotao2013.rar HTTP/1.1" 503 608 "http://download.myluoluo.com/isos/Other" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)" "-"
221.235.95.51 - - [27/Mar/2013:07:07:12 +0300] "GET /isos/Other/laomaotao2013.rar HTTP/1.1" 206 45781 "http://download.myluoluo.com/isos/Other" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; InfoPath.3; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; Zune 4.7)" "-"
113.56.58.144 - - [27/Mar/2013:07:07:13 +0300] "GET /isos/SqlServer/SQL_Server_2012.iso HTTP/1.1" 503 608 "http://download.myluoluo.com/isos/SqlServer" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)" "-"
117.87.1.4 - - [27/Mar/2013:07:07:13 +0300] "GET /isos/Other/laomaotao2013.rar HTTP/1.1" 206 516615 "http://download.myluoluo.com/isos/Other" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)" "-"
112.123.16.14 - - [27/Mar/2013:07:07:13 +0300] "GET /isos/SqlServer/SQL_Server_2008_x86.iso HTTP/1.1" 206 93302 "http://download.myluoluo.com/isos/SqlServer/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)" "-"
113.108.166.44 - - [27/Mar/2013:07:07:13 +0300] "GET /isos/SqlServer/SQL_Server_2012.iso HTTP/1.1" 206 34740 "http://download.myluoluo.com/isos/SqlServer" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; BRI/2; Media Center PC 6.0; InfoPath.3)" "-"
222.179.222.142 - - [27/Mar/2013:07:07:13 +0300] "GET /isos/Other/laomaotao2013.rar HTTP/1.1" 444 0 "http://download.myluoluo.com/isos/Other" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" "-"
117.40.80.103 - - [27/Mar/2013:07:07:13 +0300] "GET /isos/Other/laomaotao2013.rar HTTP/1.1" 206 8342 "http://download.myluoluo.com/isos/Other" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)" "-"
119.84.136.197 - - [27/Mar/2013:07:07:13 +0300] "GET /isos/Other/laomaotao2013.rar HTTP/1.1" 503 608 "http://download.myluoluo.com/isos/Other" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 4.7)" "-"
113.56.58.144 - - [27/Mar/2013:07:07:13 +0300] "GET /isos/SqlServer/SQL_Server_2012.iso HTTP/1.1" 503 608 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)" "-"
119.84.136.197 - - [27/Mar/2013:07:07:13 +0300] "GET /isos/Other/laomaotao2013.rar HTTP/1.1" 503 608 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 4.7)" "-"
119.84.136.197 - - [27/Mar/2013:07:07:14 +0300] "GET /isos/Other/laomaotao2013.rar HTTP/1.1" 503 608 "http://download.myluoluo.com/isos/Other" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 4.7)" "-"
183.187.59.240 - - [27/Mar/2013:07:07:14 +0300] "GET /isos/SqlServer/SQL_Server_2008_x86.iso HTTP/1.1" 503 608 "http://download.myluoluo.com/isos/SqlServer/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)" "-"
125.74.217.115 - - [27/Mar/2013:07:07:14 +0300] "GET /isos/Other/laomaotao2013.rar HTTP/1.1" 444 0 "http://download.myluoluo.com/isos/Other" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" "-"

19 Replies to “吐槽迅雷……”

    1. 果然会变………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………

  1. 变………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………涅米。。。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据