2006-01-18 18:12:10 by: h4x0r

Google PR值 欺骗

Font Size: Large | Medium | Small
加入下面的 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<btbtd@yahoo.com.cn>
*
* 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~
%>
Comments Feed Comments Feed: http://www.4evil.org/feed.asp?q=comment&id=509

There is no comment on this article.

Post Comment
Smilies
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password:   Register Now?
Security Code * Please Enter the Security Code