首页 电脑 电脑学堂 查看内容

Google Pr 欺骗

2005-2-17 06:44 998 0

摘要: 来源:http://blog.csdn.net/freexploit/ Google Pr 欺骗 加入下面的 PHP 代码到任意页: <?php if (strstr($_SERVER...
关键词: Google http com 面的 代码 脚本 所以 站点 如果 更新

来源:http://blog.csdn.net/freexploit/ Google Pr 欺骗 加入下面的 PHP 代码到任意页: <?php if (strstr($_SERVER['HTTP_USER_AGENT'], "Googlebot")){header("HTTP/1.1 301");header("Location: http://www.google.com");} ?> 如果google bot访问这个页面的话, 这些代码将会利用 http 301或 http302自动转向到www.google.com。 那么google bot 有可能认为这个页面的PR 是Google.com的一个镜像。 所以pr值也就是google.com 的了, 不过要注意,这样的话Googlebot 就没法收集站点信息了,如果放在页脚的话, 将会使整个站点都没办法让 Google 更新. 不过从技巧上讲, 可以在骗得 PR 之后停止使用这个脚本. PS: PR 最高为10, Google.com的PR 为10,所以这个页面在Google.com更新的时候当然也是10. /****************************************************************\** author : Emerald<[email protected]>** homepage : http://gi.2288.org:88/** Seo-Gi : http://seo.2288.org:99** sitename : 绿色学院 - Green Institute** date : 2005-01-24*\****************************************************************/<?php //Google Pagerank cheat if (strstr($_SERVER['HTTP_USER_AGENT'], "Googlebot")) { header("HTTP/1.1 301"); header("Location: http://www.google.com"); } //Emerald URL: http://gi.2288.org:88 echo '<div id="h-f-c-b"> '.date('Y-m-d H:i').' Crawled by '.$_SERVER["HTTP_USER_AGENT"].' @ '.$_SERVER["REMOTE_ADDR"]; ?> <?php // Dark Seo Team Powered Cloakin' Stuff // -> MakeYouWorkALittle (-; if (GooglebotStealMyPage&Content) { // Code only for Google header("Status: 301 Moved Permanently"); header("Location: http://www.google.com"); exit(); } else { echo "I Steal His PR""; // visual page for all // copy here all cool stuff u want } ?> 下面是Kevin1986改的asp脚本  http://hididi.net/public/Kevin/ 程序代码: <%if instr(Request.Servervariables("HTTP_USER_AGENT"),"Googlebot") then   response.redirect("http://www.google.com")end if   '代码应该是实现了HTTP 301的...不过我没FTP.没地方测试哈!.不过欺骗Google也是很好玩的HO~%>
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部