Backlinks seen by GOOGLE but not by humans

fuzzybuzzy

Newbie
Joined
Jan 3, 2010
Messages
5
Reaction score
0
Hello,

I know there is a way, but does anyone know how to have a link on a website only be seen by google? Noone can see it, even if you view the source code...

Example, say you have a link on a site, and it's hidden... only the search engine can see it, but if someone goes to the site or searches the source code they can't see it?

Thanks a lot :)
 
Sorry, I forgot to mention...the link would be on the homepage of the website.
 
This should do it.


Code:
<?php
$userAgent = $_SERVER['HTTP_USER_AGENT'];

if(stristr(strtolower($userAgent), 'googlebot') === FALSE) {
echo 'human viewable content or links.. ';
}
else {
echo 'the links you want to show to google';
}
?>

I have the else in there in case you want to show different links or content to humans


Code:
<?php
$userAgent = $_SERVER['HTTP_USER_AGENT'];

if(stristr(strtolower($userAgent), 'googlebot') === TRUE) 
{
echo 'the links you want to show to google';
}
?>

If you don't want anything other than the hidden links use the 2nd code.

Aus
 
Its called Cloaking and you can get severly punished by google for this sort of think.

If you want to hide your backlink from competitors use other techniques like 301 redirects.
 
Back
Top