Cloaking in SEO is showing search engines one version of a page and users another, to push rankings and mislead people. Google’s wording: “presenting different content to users and search engines with the intent to manipulate search rankings and mislead users” (Google spam policies).
Google’s examples
- A page about travel destinations shown to search engines, a page about discount drugs shown to users.
- Text or keywords inserted only when the visitor is a search engine, not a human.
What is not cloaking
- Paywalls. Not cloaking if Google sees the full content like any person with access, and you follow its Flexible Sampling guidance.
- JavaScript and images. If crawlers struggle with them, Google points to recommendations that make the content reachable for both, “without cloaking”.
The hacked-site case
Google: “If a site is hacked, it’s not uncommon for the hacker to use cloaking to make the hack harder for the site owner to detect.” Your own pages can be cloaked without you knowing.
What happens
Google issues a manual action when a human reviewer finds pages that break its spam policies; most result in pages ranked lower or omitted from results, with no visible sign to users. The report has an entry for cloaking and sneaky redirects: the site “may be showing different pages to users than are shown to Google”. Google calls it a violation of its spam policies. After the fix you send a reconsideration request; Google says reviews can take several days or weeks (Search Console Help).
How to spot it
Load the same URL as Googlebot and as a normal browser, then compare. Free: view page as Googlebot or the full website cloaking checker. By hand: check cloaking with curl.
Related
User-agent cloaking · IP-based cloaking · Cloaking in advertising · Website cloaking