Fake Your Google PageRank

main

Every SEO has seen the Dark SEO PR 10 page (which is banned and probably has been for a long time now) and regardless of whether they’ll admit it, have always wanted to give it a shot.

Here’s the code:

<?php
$agent = strtolower($_SERVER['HTTP_USER_AGENT']);
if(strpos($agent, "google") != "") {
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.w3.org/");
exit;
}
?>

Just place this at the top (important that it’s at the very top) of the page for which you want to fake PageRank. As you can see, I’m shooting for a 10 but you can obviously change the url (http://www.w3.org/) to get your desired PR.

If you're wondering how this can be used to boost organic placement, it can't. You would have to use something like this (and replace the link on line 2 with a link to a page you want to promote:

<?php ob_start(); ?>
<a href="http://www.php.net/">php is cool</a>
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.w3.org/“);
exit;
?>
<?php ob_end_flush(); ?>