What is Google's cloaking policy?
What the Google cloaking policy says
The Google cloaking policy is short and clear. Google's spam policies define cloaking as presenting different content to search engines and to users, with the intention of manipulating search rankings and misleading users. The two examples Google gives are:
- Showing a page about travel destinations to search engines while showing a page about discount drugs to users.
- Inserting text or keywords into a page only when the user agent requesting it is a search engine, not a human visitor.
The intent and the effect both matter. The visitor who clicks a result should get what Google saw when it ranked the page.
What is not cloaking
Google's spam policies name one legitimate case directly. Paywalls and gated content are not cloaking if Google can see the full content behind the paywall and the site follows Google's flexible sampling guidance.
Other changes that keep the same core content for everyone, such as layouts that adapt to screen size, are not what the policy describes, because nothing is being hidden from users or from search engines. If in doubt, check that Googlebot and a normal visitor receive the same main content.
The test is simple: would a person who saw both versions feel misled?
How cloaking is detected and handled
Google uses automated systems and, where needed, human review. Sites found to be cloaking may rank lower or be removed from results. A human reviewer can also issue a manual action. Google's Manual actions report help page lists "cloaking and/or sneaky redirects" as one type, with related categories for sneaky mobile redirects and cloaked images.
Cloaking is often not deliberate. Common accidental causes include:
- Hacked sites, where injected code shows spam only to crawlers.
- Security or bot management rules that serve a block page or a different version to Googlebot.
- Plugins that rewrite pages based on the user agent.
- Redirect rules that send certain user agents or referrers to other domains.
To check a page, use the URL Inspection tool in Search Console to see the HTML and screenshot Google fetched, then compare it with what you see in a normal browser. You can also request the page with a crawler user agent from the command line:
```bash curl -s -A "Googlebot" https://example.com/page | head -50 curl -s https://example.com/page | head -50 ```
Bear in mind that some cloaking checks the visitor's IP address, not just the user agent, so the URL Inspection tool remains the most reliable view. If you have a manual action, remove the cloaking everywhere, check that Google sees the same content as users, and then request review in Search Console.
Our tool
The AI Web Page SEO Google Spam Policy Audit fetches each page as a normal visitor, as Googlebot, on a phone and as a visitor arriving from a Google search, and compares the responses to find cloaking and sneaky redirects, including redirects made by scripts, so you can investigate anything unexpected before Google does.
Sources
- Spam policies for Google web search, Google Search Central
- Manual actions report, Search Console Help
Frequently asked questions
Does the Google cloaking policy cover different content on mobile and desktop?
Not in itself. Responsive layouts and device-specific designs are normal, as long as the main content and meaning are the same for users and for Googlebot. It becomes a problem when the difference is used to deceive, for example sending mobile users to an unrelated page. Google treats that as a sneaky mobile redirect, which has its own manual action category.
Can a hacked site be flagged for cloaking?
Yes. Attackers often inject spam that only appears when a search engine crawler visits, so the owner sees a normal site in the browser. If Search Console shows unexpected search results or a manual action you do not recognise, compare what the URL Inspection tool fetches with what you see, and check your server files and plugins for injected code.