Creative agency glossarySEO and Analytics

Cloaking

Cloaking is the practice of showing search engine crawlers different content from what human visitors see, in order to rank for things the real page does not deliver, and it is penalized by every major search engine.

What is cloaking?

Cloaking is a lie told to a crawler. A server detects that the visitor is a search engine, by its user agent or its IP address, and serves it a version of the page stuffed with keywords, text or links designed to rank, while serving real people something else entirely: a thin sales page, an unrelated offer, a redirect to a different site. The search engine indexes the version it was shown, ranks the page for queries the human version does not satisfy, and sends people to a page that is not what they searched for.

It is one of the oldest tricks in search and one of the clearest violations of search engine guidelines, alongside doorway pages, hidden text and link schemes. Google's spam policies name it explicitly, and detection has been automated for years: crawlers compare what they were served against what a normal browser sees, and a mismatch designed to deceive is treated as spam. The penalty ranges from losing rankings for the affected pages to removal of the whole site from the index.

Why it matters

Why cloaking matters

It matters mostly as something to never do, and as something to recognize when a vendor proposes it under another name. Brands rarely cloak on purpose; they end up doing it when a search contractor promises fast results, when a developer serves "optimized" text to bots as a shortcut, or when a hacked site is quietly serving spam to crawlers while the owner sees a normal homepage. In each case the consequence lands on the brand: lost rankings, a manual action in Google Search Console, and a recovery process that takes months.

The reason the rule exists is the reason it matters. Search works because the page the engine evaluates is the page the person gets. Cloaking breaks that contract, and the engines defend it hard, because their product is trust. A brand that relies on search for discovery has every reason to be on the same side.

In practice

How cloaking works in practice

  1. 01

    Technically, a cloaking setup inspects each request and branches. If the user agent matches a known crawler, or the IP belongs to a search engine's range, the server returns the crawler version; otherwise it returns the human version. Variants include showing crawlers text that is hidden from users with CSS, serving different content based on referrer so that visitors from search see one page and direct visitors another, and redirecting human visitors through JavaScript that the crawler does not execute.

  2. 02

    Detection works by comparing. Search engines crawl from undeclared addresses and with ordinary browser signatures, render pages the way a browser does, and flag pages whose content differs materially between the crawler view and the user view when the difference looks deliberate. Legitimate differences, such as serving a mobile layout to phones, a language based on location, or paywalled content with proper markup, are allowed because they are declared and serve the user. The test is intent: is the search engine being shown what the person will get? When a site has been hacked to cloak, the fix is cleaning the server, patching the vulnerability, and filing a reconsideration request once the pages match again.

Watch out

What people get wrong about cloaking

Confusing it with legitimate personalization. Showing a visitor a page in their language, a mobile layout or content behind a login they have is not cloaking; the content is consistent, and the crawler is told what is happening. The second mistake is thinking it still works. Modern detection is automated and fast, and the sites that cloak successfully are the ones nobody has looked at yet. The third is not checking for it. A brand whose rankings have fallen for no visible reason should fetch its own pages as a crawler would, because a hacked site cloaking spam looks completely normal from the owner's browser.

Questions

People also ask

Is cloaking illegal?

It is not against the law in most places, but it violates the guidelines of every major search engine and is treated as spam. The consequence is a ranking penalty or removal from the index rather than a legal one, although cloaking used for fraud or malware distribution can carry legal consequences of its own.

What is the difference between cloaking and a doorway page?

A doorway page is a page built only to rank for a query and funnel visitors elsewhere; it shows everyone the same content, but the content has no value of its own. Cloaking shows crawlers and humans different content. The two are often used together, and both are penalized as deceptive.

Is dynamic content or personalization considered cloaking?

No, as long as the search engine is treated like any other visitor and the differences serve users honestly. Mobile layouts, language by location, A/B tests and content behind a login that is marked up properly are all fine. The violation is showing the crawler content specifically designed to rank that the person never sees.

How do I know if my site is cloaking without my knowledge?

Use the URL inspection tool in Google Search Console to see how Google renders a page, and compare it with the page in a normal browser. Fetch pages with a crawler user agent and compare the response. A hacked site that serves spam only to crawlers will look normal to the owner, so this check belongs in any unexplained ranking drop.

Next to it in the glossary

  1. Campaign ReportingCampaign reporting is the structured account of what a marketing campaign did: what was spent, what was delivered, what happened as a result and what should change next time.
  2. Canonical TagA canonical tag is a line of HTML that tells search engines which URL is the preferred version of a page when the same content is reachable at more than one address.
  3. Click Through Rate (CTR)Click through rate (CTR) is the percentage of people who click on an ad, a link or a search result out of everyone who saw it.
  4. Co-citationCo-citation is the pattern of two websites or brands being mentioned together by a third source, which search engines read as a signal that the two are related.
  5. Commercial QueryA commercial query is a search made by someone who intends to buy and is comparing options before they do, which makes it the most valuable kind of search for a brand to appear in.
  6. Conversion TrackingConversion tracking is the measurement of the actions a brand wants people to take, such as purchases, sign-ups or inquiries, and the attribution of those actions to the campaigns, channels and creative that produced them.

Every SEO and Analytics term →

In the work

Where it shows up

All our creations →

From the journal

Read around it

The journal →

Talking the talk is one thing

We make the work.

RIOT is a creative agency and production studio in New York. Strategy, brand, film, photography, design and the campaigns that carry them, made by one team. A few lines is enough to start: we read every brief the same day.

    Footage