TECHNICAL · SEO GLOSSARY

Cloaking

A black-hat SEO technique of showing different content to search engine crawlers than to human users — typically by detecting the user agent (Googlebot) or IP address of the crawler and serving keyword-rich or manipulated content to the crawler while showing normal or different content to users. A clear violation of Google\'s spam policies.

Definition

Cloaking is the practice of presenting different content or URLs to search engines than to human users. It\'s one of the clearest violations of Google\'s quality guidelines because it directly deceives Google\'s crawlers about a page\'s actual content. Cloaking techniques: **User-agent cloaking** — detecting the `Googlebot` user-agent string in the HTTP request and serving different content than when a browser user agent is detected. **IP-based cloaking** — maintaining a list of Google\'s known crawler IP addresses and serving different content to those IPs. **JavaScript cloaking** — rendering a JavaScript application that Googlebot can\'t execute, while the crawlable server HTML contains keyword-stuffed or different content than users see (this can also be accidental — not all JavaScript rendering gaps are intentional cloaking). **Sneaky redirects** — redirecting Googlebot to a different, more keyword-optimised page than users are redirected to. Cloaking is distinct from legitimate user personalisation (showing different content to logged-in users vs anonymous users) and legitimate A/B testing (serving content variants to both users and crawlers without hiding content). Google draws the line at intent: if the purpose is to manipulate what Google sees vs what users see, it\'s cloaking. If a page legitimately shows different content to different users based on authentication, subscription status, or A/B testing, that\'s generally acceptable (though gated content behind a login wall may not be indexable). Google\'s manual review team actively looks for cloaking as part of spam investigations. When detected, cloaking typically results in a manual action that removes the affected pages (or the entire domain) from Google\'s search results.

Why it matters for SEO

Cloaking can result in a manual spam action that removes a domain from Google\'s index entirely — the nuclear outcome in search penalty terms. Beyond intentional cloaking, unintentional cloaking-like behaviour (JavaScript content that renders for users but not for Googlebot, or A/B test variants that show more content to users than the server HTML contains) can confuse Google and cause indexation of a different, lesser version of the page. The audit\'s rendering mode check — comparing the raw server HTTP response against the JavaScript-rendered DOM — catches both intentional and unintentional content discrepancies.

How DeepSEOAnalysis checks this

The audit compares the raw server HTTP response (what Googlebot\'s first-wave fetch sees) against the JavaScript-rendered DOM (what users see after JavaScript executes). Significant content differences between the two views — headlines, body text, links, or schema that appears only after rendering — are flagged as potential rendering gaps or cloaking-like behaviour. The audit does not detect IP-based or user-agent-based cloaking at the server level (which would require testing with multiple user agents and IPs), but it does detect the most common unintentional variant: JavaScript-dependent content missing from the server HTML.

Useful tools and resources

See how your site scores on Cloaking.

The free DeepSEOAnalysis audit checks cloaking and 100+ other signals. Full report, no signup.

Run a free audit →