Different page for crawlers
- Method
- Show a different page to search engines than to users
- Example
- Travel destination content for search engines, discount drug pages for users
Cloaking means showing search engines different content than users to manipulate rankings. What Google's spam policy says, what isn't cloaking, and how to check.
Cloaking is the practice of presenting different content to users and search engines with the intent to manipulate search rankings and mislead users. It is listed in Google's spam policies, and Google says sites that violate its policies may rank lower in results or not appear in results at all.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
Google's spam policies define cloaking as "the practice of presenting different content to users and search engines with the intent to manipulate search rankings and mislead users." The definition includes intent to manipulate rankings and mislead users.
Google lists two examples. One is showing a page about travel destinations to search engines while showing a page about discount drugs to users. The other is inserting text or keywords into a page only when the user agent requesting the page is a search engine, not a human visitor.
// Detecting crawler and serving different content
if (navigator.userAgent.indexOf('Googlebot') !== -1) {
// Serve crawler-targeted content
document.body.innerHTML = 'Keyword-stuffed content';
} else {
// Serve content to real users
document.body.innerHTML = 'Actual website content';
}Google's definition turns on presenting different content to users and search engines with the intent to manipulate search rankings and mislead users.
Don't branch on the Googlebot user agent to change the main content of a page.
Don't insert text or keywords that only search engines get.
If your site uses technologies search engines have difficulty accessing, like JavaScript or images, Google has recommendations for making that content accessible to search engines and users without cloaking.
Google notes that 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. Check plugins and scripts you don't recognize.
If you use a paywall, follow Google's Flexible Sampling guidance.
Use the URL Inspection tool in Search Console to see the page as Google fetches it. Google's crawler documentation says its Google-InspectionTool user agent is used by Search testing tools such as the Rich Results Test and URL inspection.
Open the same page normally. Significant differences in main text, links or redirects need an explanation.
Run curl -s -A "Googlebot" https://example.com/ > bot.html and curl -s https://example.com/ > user.html, then diff bot.html user.html. This only catches differences keyed on the user-agent string.
Look for Googlebot, bingbot and User-Agent in templates, server config and plugins. Any branch that changes main content by visitor type needs review.
3 questions people ask next, answered from the sources on this page.
Not as Google defines it: presenting different content to users and search engines with the intent to manipulate rankings and mislead users is listed as spam. Google says it doesn't consider a paywall or content-gating mechanism to be cloaking if Google can see the full content behind it just like any person who has access, and you follow Flexible Sampling.
Google's spam policies page describes reconsideration requests in its site reputation abuse section but gives no recovery steps for cloaking, so follow Search Console's manual action help. Remove the cloaking first and confirm the page is the same for crawlers and users.
Google's policy addresses paywalls and content-gating: it isn't considered cloaking if Google can see the full content behind the gate just like any person who has access, and you follow Flexible Sampling. Showing crawlers something different to manipulate rankings is what the policy targets.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.