---
title: "Cloaking"
description: "Cloaking is a Black Hat SEO technique of serving different content to Google's bots than to users. Learn the mechanism, examples and the penalties."
url: "https://nodea.io/en/glossary/cloaking"
lang: "en"
updated: "2026-07-13"
---

# Cloaking

> Cloaking is a banned SEO technique of presenting search engine bots with different content than ordinary users see, in order to manipulate rankings.

**Cloaking** is a [Black Hat SEO](https://nodea.io/en/glossary/black-hat-seo) technique in which the server presents search engine bots with entirely different content than ordinary users visiting the same page see. The aim is to manipulate search rankings: the bot sees content optimized for target keywords, while a human lands on something else — often low quality or purely promotional. Google unambiguously treats cloaking as a rule violation and penalizes it severely.

## How cloaking works

The mechanism relies on recognizing who is visiting the page. The server analyzes the [user-agent](https://nodea.io/en/glossary/user-agent) header or the IP address, checking whether the request comes from [Googlebot](https://nodea.io/en/glossary/googlebot) or from a user's browser. Based on that, it decides which version of the page to return.

There are several variants of the practice: swapping content based on the user-agent, IP-based cloaking, and hiding text or links invisible to a human but visible to a bot. All of them share one thing — deliberately misleading the search engine about the page's actual content.

## Practical use and risks

Cloaking is often abused to promote pages Google would not normally index, or to hide spam or redirects to affiliate sites.

- **Algorithmic penalty** — a [Google filter](https://nodea.io/en/glossary/google-penalty) can drastically cut an entire domain's visibility.
- **Manual action** — Google's team can remove the page from the index entirely.
- **Loss of trust** — recovering rankings after cloaking is detected can be long and costly.

It is worth noting the difference from permitted techniques: personalizing content based on language or location is not cloaking, as long as a bot and a user from the same region see the same thing. The key is the absence of intent to deceive the search engine. In ethical [White Hat SEO](https://nodea.io/en/glossary/white-hat-seo), cloaking is strictly discouraged.

### Does Google always penalize cloaking?

Cloaking violates Google's webmaster guidelines and risks a manual action or an algorithmic filter, up to complete removal from the index. Even unintentional content masking can be classified as spam.

## Related

- [Black hat SEO](https://nodea.io/en/glossary/black-hat-seo)
- [Google penalty](https://nodea.io/en/glossary/google-penalty)
- [User Agent](https://nodea.io/en/glossary/user-agent)
- [Googlebot](https://nodea.io/en/glossary/googlebot)
- [SEO](https://nodea.io/en/glossary/seo)

---

Languages: [pl](https://nodea.pl/pl/slownik-pojec/cloaking.md)  
Site index: [llms.txt](https://nodea.io/en/llms.txt)
