Google PR spoofing by emerald green school-green Institute

Source: Internet
Author: User
Allyesno Note: self-test without verification

Http://blog.csdn.net/btbtd/

Google PR Spoofing

Add the following PHP code to any page:

<? PHP

If (strstr ($ _ server ['HTTP _ user_agent '], "googlebot "))
{
Header ("HTTP/1.1 301 ");
Header ("Location: http://www.google.com ");
}

?>

If Google bot accesses this page,

The code will be automatically redirected to www.google.com using HTTP 301 or http302.

Google Bot may think that the PR of this page is an image of Google.com.

So the PR value is also of Google.com,

However, in this case, googlebot cannot collect site information. If it is placed in the footer,

This will make the entire site unable to update Google. However, technically, you can stop using this script after the PR scam.

PS: the highest PR value is 10, and the PR value of Google.com is 10. Therefore, this page is also 10 when Google.com is updated.

/*************************************** *************************/
*
* Author: emerald <btbtd@yahoo.com.cn>
*
* Homepage: http://gi.2288.org: 88/
*
* Seo-gi: http://seo.2288.org: 99
*
* Sitename: Green School-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 '). 'crawler '. $ _ 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

}

?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.