<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：nginx 禁止某个 User_Agent 的方法</title>
	<atom:link href="http://luy.li/2009/10/31/nginx-block-user_agent/feed/" rel="self" type="application/rss+xml" />
	<link>http://luy.li/2009/10/31/nginx-block-user_agent/</link>
	<description>all linux</description>
	<lastBuildDate>Tue, 31 Aug 2010 07:33:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>由：monface</title>
		<link>http://luy.li/2009/10/31/nginx-block-user_agent/#comment-10603</link>
		<dc:creator>monface</dc:creator>
		<pubDate>Thu, 10 Jun 2010 11:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://li2z.cn/?p=1172#comment-10603</guid>
		<description>怎么我用这个无效呢</description>
		<content:encoded><![CDATA[<p>怎么我用这个无效呢</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：bones7456</title>
		<link>http://luy.li/2009/10/31/nginx-block-user_agent/#comment-9179</link>
		<dc:creator>bones7456</dc:creator>
		<pubDate>Wed, 13 Jan 2010 00:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://li2z.cn/?p=1172#comment-9179</guid>
		<description>呵呵，那也好办啊，不彻底屏蔽的话，就限速好了。</description>
		<content:encoded><![CDATA[<p>呵呵，那也好办啊，不彻底屏蔽的话，就限速好了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：一或九</title>
		<link>http://luy.li/2009/10/31/nginx-block-user_agent/#comment-9178</link>
		<dc:creator>一或九</dc:creator>
		<pubDate>Tue, 12 Jan 2010 19:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://li2z.cn/?p=1172#comment-9178</guid>
		<description>我也想屏不敢屏。。。xp的ie6.。。的确是这个UA。。。。。</description>
		<content:encoded><![CDATA[<p>我也想屏不敢屏。。。xp的ie6.。。的确是这个UA。。。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：I am LAZY bones ? : nginx 对某些 User_Agent 进行限速的方法</title>
		<link>http://luy.li/2009/10/31/nginx-block-user_agent/#comment-9078</link>
		<dc:creator>I am LAZY bones ? : nginx 对某些 User_Agent 进行限速的方法</dc:creator>
		<pubDate>Wed, 06 Jan 2010 04:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://li2z.cn/?p=1172#comment-9078</guid>
		<description>[...] 本文为nginx 禁止某个 User_Agent 的方法的姊妹篇，不知所云的话，建议先看看这文。 由于之前已经将某个特别疯狂的迅雷的User_Agent给封掉了，所以最近一段时间，我的那源服务器也运行地比较稳定，但是今天，Linux Deepin 9.12正式发布了，由于我给Deepin做了一个iso的镜像，所以服务器又经历了一个访问高峰，如下图：  从这里也可以看出Linux Deepin的受欢迎程度，哈哈。 可以看到从11:00以后，100M的带宽就已经被完全撑满了。。。一看日志，大部分又是迅雷干的，但这次迅雷不是用某个特定的UA来访问了，而是各有变化，但是却都包含MSIE，哈哈。 当然IE用户直接访问的话，也会有这个MSIE，但是没办法，为了保全Ubuntu APT-HTTP的合法权益，只能限制一下MSIE了。 但是怎么限制呢？总不能人家用MSIE的连主页面都打不开吧？哈哈，最好的办法就是限速，于是，有了这个配置： server { listen 80; server_name ubuntu.srt.cn; access_log /var/log/nginx/mirror.access.log; location / { root /data/mirrors; autoindex on; index index.html index.htm; if ($http_user_agent ~ &quot;MSIE&quot;) { limit_rate 2k; } if ($http_user_agent ~ &quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)&quot;) { return 404; } } &#160; error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/nginx-default; } } [...]</description>
		<content:encoded><![CDATA[<p>[...] 本文为nginx 禁止某个 User_Agent 的方法的姊妹篇，不知所云的话，建议先看看这文。 由于之前已经将某个特别疯狂的迅雷的User_Agent给封掉了，所以最近一段时间，我的那源服务器也运行地比较稳定，但是今天，Linux Deepin 9.12正式发布了，由于我给Deepin做了一个iso的镜像，所以服务器又经历了一个访问高峰，如下图：  从这里也可以看出Linux Deepin的受欢迎程度，哈哈。 可以看到从11:00以后，100M的带宽就已经被完全撑满了。。。一看日志，大部分又是迅雷干的，但这次迅雷不是用某个特定的UA来访问了，而是各有变化，但是却都包含MSIE，哈哈。 当然IE用户直接访问的话，也会有这个MSIE，但是没办法，为了保全Ubuntu APT-HTTP的合法权益，只能限制一下MSIE了。 但是怎么限制呢？总不能人家用MSIE的连主页面都打不开吧？哈哈，最好的办法就是限速，于是，有了这个配置： server { listen 80; server_name ubuntu.srt.cn; access_log /var/log/nginx/mirror.access.log; location / { root /data/mirrors; autoindex on; index index.html index.htm; if ($http_user_agent ~ &quot;MSIE&quot;) { limit_rate 2k; } if ($http_user_agent ~ &quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)&quot;) { return 404; } } &nbsp; error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/nginx-default; } } [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：ManofPhysics</title>
		<link>http://luy.li/2009/10/31/nginx-block-user_agent/#comment-8670</link>
		<dc:creator>ManofPhysics</dc:creator>
		<pubDate>Tue, 08 Dec 2009 13:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://li2z.cn/?p=1172#comment-8670</guid>
		<description>可以研究一下NginxHttpAccessKeyModule，他可以封杀迅雷。</description>
		<content:encoded><![CDATA[<p>可以研究一下NginxHttpAccessKeyModule，他可以封杀迅雷。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
