<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[郝聪SEO博客]]></title> 
<link>http://www.pptge.com/index.php</link> 
<description><![CDATA[搜索引擎优化原创技术博客，关注整合网络营销，分享各类网站SEO策略与优化成功案例，曾任多家商业网站的SEO顾问！为商业网站制定整体SEO战略，创造庞大搜索流量，为企业网站提升关键词排名，带动产品销售。为发展助力，成就你我！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[郝聪SEO博客]]></copyright>
<item>
<link>http://www.pptge.com/post/217/</link>
<title><![CDATA[搜索引擎蜘蛛捕捉器]]></title> 
<author>郝聪 &lt;bloghuman@gmail.com&gt;</author>
<category><![CDATA[SEO工具]]></category>
<pubDate>Fri, 27 Oct 2006 09:59:36 +0000</pubDate> 
<guid>http://www.pptge.com/post/217/</guid> 
<description>
<![CDATA[ 
	以下提供给大家的是PHP版的捕捉搜索引擎蜘蛛爬行的代码。我们可以通过生成的文本文件查看每天都有哪几种搜索引擎蜘蛛爬行站点以及爬行频率，便于大家了解蜘蛛动向。<br/><br/>但是，从<a href="http://www.bloghuman.com/index.php?go=category_2" target="_blank"><a href="http://www.bloghuman.com/category/seo-tool/" target="_blank" title="http://www.bloghuman.com/category/seo-tool/" class="mykeyword">SEO工具</a></a>需求角度来说，这段代码实现的功能还是很有局限性，从我个人需求而言，我希望能体现更多的信息，比如：蜘蛛爬行的页面URL、返回的状态码、每日爬行持续多长时间等等，甚至可以汇总于数据库中便于随时查询。因此，强烈呼吁编程高手开发数据库版的捕捉蜘蛛的程序。<br/><br/><script type="text/javascript"><!--<br/>google_ad_client = "pub-5376776771027414";<br/>google_ad_output = "textlink";<br/>google_ad_format = "ref_text";<br/>google_cpa_choice = "CAAQ9cm1_wEaCBkyusVe5rXbKOm84YcB";<br/>google_ad_channel = "";<br/>//--></script><br/><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"><br/></script><br/><br/>实现蜘蛛捕捉的PHP代码如下：<br/><br/><div class="code"><br/>function get_naps_bot()<br/>&#123;<br/>$useragent = strtolower($_SERVER&#91;&#039;HTTP_USER_AGENT&#039;&#93;);<br/><br/>if (strpos($useragent, &#039;googlebot&#039;) !== false)&#123;<br/>return &#039;Googlebot&#039;;<br/>&#125;<br/><br/>if (strpos($useragent, &#039;msnbot&#039;) !== false)&#123;<br/>return &#039;MSNbot&#039;;<br/>&#125;<br/><br/>if (strpos($useragent, &#039;slurp&#039;) !== false)&#123;<br/>return &#039;Yahoobot&#039;;<br/>&#125;<br/><br/>if (strpos($useragent, &#039;baiduspider&#039;) !== false)&#123;<br/>return &#039;Baiduspider&#039;;<br/>&#125;<br/><br/>if (strpos($useragent, &#039;sohu-search&#039;) !== false)&#123;<br/>return &#039;Sohubot&#039;;<br/>&#125;<br/><br/>if (strpos($useragent, &#039;lycos&#039;) !== false)&#123;<br/>return &#039;Lycos&#039;;<br/>&#125;<br/><br/>if (strpos($useragent, &#039;robozilla&#039;) !== false)&#123;<br/>return &#039;Robozilla&#039;;<br/>&#125; <br/>return false;<br/>&#125;<br/><br/><br/>function nowtime()&#123;<br/>$date=date(&quot;Y-m-d.G:i:s&quot;);<br/>return $date;<br/>&#125;<br/><br/>$searchbot = get_naps_bot();<br/><br/>if ($searchbot) &#123;<br/>$tlc_thispage = addslashes($_SERVER&#91;&#039;HTTP_USER_AGENT&#039;&#93;);<br/>$url=$_SERVER&#91;&#039;HTTP_REFERER&#039;&#93;;<br/>$file=&quot;robotlog.txt&quot;;<br/>$time=nowtime();<br/>$data=fopen($file,&quot;a&quot;);<br/>fwrite($data,&quot;Time:$time robot:$searchbot URL:$tlc_thispage&#92;n&quot;);<br/>fclose($data);<br/>&#125;<br/></div><br/><br/><br/>使用方法：<br/>把以下代码粘贴到你想监控的页面php代码的<? &nbsp;?>之间的开头或结尾即可（也可以放在模板文件内）<br/>Tags - <a href="http://www.pptge.com/tags/seo/" rel="tag">seo</a> , <a href="http://www.pptge.com/tags/seo%25E5%25B7%25A5%25E5%2585%25B7/" rel="tag">seo工具</a> , <a href="http://www.pptge.com/tags/%25E6%2590%259C%25E7%25B4%25A2%25E5%25BC%2595%25E6%2593%258E%25E8%259C%2598%25E8%259B%259B/" rel="tag">搜索引擎蜘蛛</a>
]]>
</description>
</item><item>
<link>http://www.pptge.com/post/217/#blogcomment83</link>
<title><![CDATA[[评论] 搜索引擎蜘蛛捕捉器]]></title> 
<author>Stone &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 10 Nov 2006 06:40:23 +0000</pubDate> 
<guid>http://www.pptge.com/post/217/#blogcomment83</guid> 
<description>
<![CDATA[ 
	生日快乐
]]>
</description>
</item><item>
<link>http://www.pptge.com/post/217/#blogcomment99080</link>
<title><![CDATA[[评论] 搜索引擎蜘蛛捕捉器]]></title> 
<author>小虫 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 02 Jul 2007 08:09:46 +0000</pubDate> 
<guid>http://www.pptge.com/post/217/#blogcomment99080</guid> 
<description>
<![CDATA[ 
	这样的原理是什么啊？ 大概能看懂一些，具体原理就不太明白了。 不过还是多谢了。
]]>
</description>
</item><item>
<link>http://www.pptge.com/post/217/#blogcomment99081</link>
<title><![CDATA[[评论] 搜索引擎蜘蛛捕捉器]]></title> 
<author>fel &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 02 Jul 2007 08:27:33 +0000</pubDate> 
<guid>http://www.pptge.com/post/217/#blogcomment99081</guid> 
<description>
<![CDATA[ 
	纯静态页有什么办法捕捉蜘蛛纪录吗？ 新手~ 勿怪阿
]]>
</description>
</item><item>
<link>http://www.pptge.com/post/217/#blogcomment99085</link>
<title><![CDATA[[评论] 搜索引擎蜘蛛捕捉器]]></title> 
<author>小虫 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 03 Jul 2007 01:51:05 +0000</pubDate> 
<guid>http://www.pptge.com/post/217/#blogcomment99085</guid> 
<description>
<![CDATA[ 
	哎呀 一个不小心 &nbsp;被你鉴定出来了 不过我确实是新手，刚开始研究这个，一头雾水中，所以来你这里学习学习。
]]>
</description>
</item><item>
<link>http://www.pptge.com/post/217/#blogcomment103988</link>
<title><![CDATA[[评论] 搜索引擎蜘蛛捕捉器]]></title> 
<author>hxngb1af &lt;whqd10@mail114.net&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 26 Apr 2012 04:55:50 +0000</pubDate> 
<guid>http://www.pptge.com/post/217/#blogcomment103988</guid> 
<description>
<![CDATA[ 
	谢谢楼主，好久没看到这么好的贴了
]]>
</description>
</item><item>
<link>http://www.pptge.com/post/217/#blogcomment103999</link>
<title><![CDATA[[评论] 搜索引擎蜘蛛捕捉器]]></title> 
<author>qpyx456com &lt;lddu40@mail114.net&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 26 Apr 2012 12:16:01 +0000</pubDate> 
<guid>http://www.pptge.com/post/217/#blogcomment103999</guid> 
<description>
<![CDATA[ 
	说得有道理，确实不错，先顶顶再说！！！！
]]>
</description>
</item><item>
<link>http://www.pptge.com/post/217/#blogcomment104004</link>
<title><![CDATA[[评论] 搜索引擎蜘蛛捕捉器]]></title> 
<author>qpyx456com &lt;jjva47@mail114.net&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 27 Apr 2012 07:13:03 +0000</pubDate> 
<guid>http://www.pptge.com/post/217/#blogcomment104004</guid> 
<description>
<![CDATA[ 
	好的，真长见识了，说得很有道理
]]>
</description>
</item><item>
<link>http://www.pptge.com/post/217/#blogcomment104012</link>
<title><![CDATA[[评论] 搜索引擎蜘蛛捕捉器]]></title> 
<author>qpyx456com &lt;asqg073@domozmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 30 Apr 2012 07:40:25 +0000</pubDate> 
<guid>http://www.pptge.com/post/217/#blogcomment104012</guid> 
<description>
<![CDATA[ 
	我想我明白楼主的意思了
]]>
</description>
</item>
</channel>
</rss>