<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[SelBoo's Blog 色萝卜]]></title> 
<link>http://selboo.com.cn/index.php</link> 
<description><![CDATA[简单记录,方便自己,服务大众...]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[SelBoo's Blog 色萝卜]]></copyright>
<item>
<link>http://selboo.com.cn/post/556/</link>
<title><![CDATA[lighttpd nginx 防盗链]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Tue, 30 Jun 2009 10:42:03 +0000</pubDate> 
<guid>http://selboo.com.cn/post/556/</guid> 
<description>
<![CDATA[ 
	Lighttpd:<br/><br/>$HTTP["referer"] !~ "^($&#124;http://.*&#92;.(ri0day&#92;.com&#124;kissbye&#92;.cn))" &#123;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>　　$HTTP["url"] =~ "&#92;.(jpg&#124;jpeg&#124;png&#124;gif&#124;rar&#124;zip&#124;mp3&#124;swf&#124;flv&#124;wmv&#124;rm&#124;avi)$" &#123;<br/>　　　　url.redirect = (".*"&nbsp;&nbsp;&nbsp;&nbsp;=> "http://ri0day.blogbus.com/")<br/>　　&#125;<br/>&#125;<br/>=============================================================<br/>Nginx:<br/><br/>location ~* &#92;.(gif&#124;jpg&#124;png&#124;swf&#124;rm&#124;avi&#124;wmv)$ &#123;<br/>valid_referers none blocked www.ri0day.com google.com;<br/>if ($invalid_referer) &#123;<br/>rewrite ^/ http://ri0day.com/error.html;<br/>&#125;<br/>&#125;<br/>Tags - <a href="http://selboo.com.cn/tags/nginx/" rel="tag">nginx</a>
]]>
</description>
</item>
</channel>
</rss>