I am attempting to cloak Google. Display different content to the user if coming from a Google search.
I set up a site, enabled cloaking, and I got indexed, and got traffic (no leads yet, traffic is small). This is the code I write. Are there other techniques I can use to employ? If anyone can share some advice, either publicly, or privately I will write a script and release it free for you guys.
If it is from a Google search, the page includes some obfuscated Javascript which redirects the user to where ever I want them to go.
Should I be doing other things? I can't help but think what though. Aside from maybe check if the useragent is a Google bot.
I set up a site, enabled cloaking, and I got indexed, and got traffic (no leads yet, traffic is small). This is the code I write. Are there other techniques I can use to employ? If anyone can share some advice, either publicly, or privately I will write a script and release it free for you guys.
Code:
function isGoogleSearch()
{
if(strpos($_SERVER['HTTP_REFERER'], 'google'))
{
return true;
}
else {
return false;
}
}
If it is from a Google search, the page includes some obfuscated Javascript which redirects the user to where ever I want them to go.
Should I be doing other things? I can't help but think what though. Aside from maybe check if the useragent is a Google bot.
Last edited: