Mobile app version of vmapp.org
Login or Join
Alves908

: Could Google detect Cloaking if I displayed content to Google user agent using PHP PHP is server side and all Googlebot would see is the output HTML, right? if (strpos($_SERVER[‘HTTP_USER_AGENT’],"Googlebot"))

@Alves908

Posted in: #Cloaking #Php #Seo

PHP is server side and all Googlebot would see is the output HTML, right?

if (strpos($_SERVER[‘HTTP_USER_AGENT’],"Googlebot")) { // do some functionality }

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves908

1 Comments

Sorted by latest first Latest Oldest Best

 

@Pope3001725

Defeating this is easy and has nothing to do with doing this on the server side. All they have to do is compare a page that you serve to the Googlebot user agent and one to a bot or human that is not. The pages will be different and you will be caught and penalized for cloaking. It's that simple.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme