We all know that google is now punishing sites with bad link profiles. This would imply that in order to improve search serp rankings with google, one must remove bad links or build good links to offset the good links in order to improve their overall profile. Even if you do build 'good links' google may still continue to punish you for your past sins.
I have discovered that it is nearly impossible to remove all of the links to your site by emailing webmasters manually. So I got to thinking, what if there is a better way...The question is, how can we programatically block google from following "bad links" to your site (if at all)?
My idea is to check the referrer to your site on the top of each page. If the referrer is from a known spam link source, redirect the user to a different 'throwaway domain' to take the heat rather than your site. There are many potential issues with this, such as google thinking that your site has moved.
Here is my sample code, which I just hacked together and have not tested. I am interested in your comments.
<?php
$refferrer = $_SERVER['HTTP_REFERER'];
$ignorelinks = array("http://www.spamsite1.com", "http://www.spamsite2.com", "http://www.spamsite3.com");
if (in_array($refferrer, $ignorelinks))
{
header('Location: http://www.someothersite.com');
}
else
{
// display your website here
}
?>
I have discovered that it is nearly impossible to remove all of the links to your site by emailing webmasters manually. So I got to thinking, what if there is a better way...The question is, how can we programatically block google from following "bad links" to your site (if at all)?
My idea is to check the referrer to your site on the top of each page. If the referrer is from a known spam link source, redirect the user to a different 'throwaway domain' to take the heat rather than your site. There are many potential issues with this, such as google thinking that your site has moved.
Here is my sample code, which I just hacked together and have not tested. I am interested in your comments.
<?php
$refferrer = $_SERVER['HTTP_REFERER'];
$ignorelinks = array("http://www.spamsite1.com", "http://www.spamsite2.com", "http://www.spamsite3.com");
if (in_array($refferrer, $ignorelinks))
{
header('Location: http://www.someothersite.com');
}
else
{
// display your website here
}
?>