What is cloaking in SEO? It is showing one version of a page to people and a different version to search engines. Google treats it as spam when the purpose is to manipulate rankings and mislead users. Hidden text and sneaky redirects sit next to it in the same spam policies, and the three share one idea: a deliberate gap between what a visitor sees and what a crawler sees. Link-related violations belong to the same family of rules, which Google's link spam policies and safe link building covers separately.
If you run a site, edit its templates or hire people who do, the practical risk is two-sided. You can strip out a perfectly legitimate accordion because the word "hidden" sounded alarming, or you can leave a template setting in place that Google's documentation names as a violation. Telling the two apart is a matter of applying Google's own definitions and example lists to your pages, and of checking them on a schedule.
Start From the Symptom: Which Policy Is in Play?
The three policy headings overlap in daily work. A developer rarely says "I added cloaking"; the report says "the page looks different to the crawler" or "the visitor lands somewhere else". Triage by symptom first, then read the matching definition.
Triage table
| What you notice | Policy heading it may touch | First check |
|---|---|---|
| The page Googlebot receives is not the page a browser shows | Cloaking | Compare the rendered HTML in "URL Inspection" with the browser view |
| Text exists in the source but cannot be seen or reached by a visitor | Hidden text or links | Search the stylesheets for size 0, opacity 0, off-screen positions and matching colours |
| Visitors arriving from search end up on a different page than the result promised | Sneaky redirects | List every redirect rule and write the reason beside each |
| A running experiment shows variations to some visitors | Cloaking, if the test is built carelessly | Check canonical links, redirect type and the test's end date |
| A firewall or CDN answers bots differently | Cloaking-like symptom caused by configuration | Compare a verified Googlebot response with a visitor response |
What the three share
In each case one party, the visitor or the search engine, does not see what the other sees. The difference lies in where the deception happens: in the response body for cloaking, in the layout for hidden text, and in the landing page for sneaky redirects. Legitimate counterparts exist for every heading, which is why the checks that follow ask about purpose and not only about technique.
Cloaking: One URL, Two Audiences
The definition is short, and the details sit in the examples. Reading both removes the guesswork.
How Google words it
Google's spam policies (Opens in a new tab) define cloaking as presenting different content to users and search engines, with the intent to manipulate search rankings and mislead users. Two examples appear on the page. In the first, search engines are shown a page about travel destinations while users are shown a page about something unrelated. In the second, text or keywords are inserted into a page only when the request comes from a search engine rather than a human visitor.
The second example matters because it shows that cloaking does not require two separate pages. A single URL can return a different body depending on who is asking. Any rule in a template, a server script or an edge layer that checks the requester and then adds or removes content belongs under this heading.
Why the mechanism is beside the point
Google's website testing documentation (Opens in a new tab) puts it plainly: do not show one set of URLs to Googlebot and a different set to humans. It adds that cloaking counts whether you do it by server logic, by robots.txt or by any other method. The list of methods is therefore open. The test is whether the two audiences receive something different.
Practical suggestion: whenever you add a plugin, a CDN rule or a server script, ask one question. Does this code produce a different output when the requester is Googlebot? If yes, you should be able to explain the reason in writing. An explanation that amounts to "the search engine should know this but the visitor should not" is a warning sign.
The paywall exception and its condition
The same policy page carves out one exception. Google says it does not consider paywalled or gated content to be cloaking if Google can see the full content and the site follows its Flexible Sampling general guidance. A members-only article that Googlebot can read in full, under those guidelines, is therefore not the problem. Showing Googlebot a different or fuller version than the one the member receives is.
Hidden Text and Links: The Five Techniques on the Policy Page
Google describes hidden text or link abuse as placing content on a page in a way that exists solely to manipulate search engines. The policy page then names specific techniques.
What the policy page lists
- White text on a white background.
- Text hidden behind an image.
- CSS used to position text off-screen.
- Font size or opacity set to 0.
- A link hidden by attaching it to a single small character.
What these share is that the text or link is present in the code but is not meant to reach a human reader. The crawler can read it, the visitor cannot. When the aim is to influence rankings, that gap is the violation.
Elements the policy page clears
The page also lists elements that do not break the rules. They are accordion or tabbed content that toggles between hiding and showing additional content, a slideshow or slider that cycles between several images or text paragraphs, tooltip or similar text that displays additional content when users interact with an element, and text that is only accessible to screen readers and intended to improve the experience for people using screen readers.
The last item deserves attention from anyone doing accessibility work. Visually hidden text written for screen reader users is not a violation when its purpose is to help those users. The line is purpose: text that informs a particular audience is legitimate, and text that carries only keywords and tells no one anything is not.
Three rules for screen-reader-only text
Practical suggestion: three rules keep that kind of text on the right side. First, it must not contradict the visible page. Second, it must give real information, such as explaining what an icon-only button does. Third, it must not repeat a list of keywords or service names. With those three conditions in place, the text matches the policy page's description of an element that does not violate the rules.
Verdicts for what you find
| Element you find | Verdict | If it fails, the fix |
|---|---|---|
| Keyword block in white on white | Matches a hidden text example | Remove it, or rebuild it as visible content that helps a reader |
| Keyword list pushed off-screen with CSS | Matches a hidden text example | Remove it |
| Questions and answers inside an accordion | Listed as not violating | Nothing to fix, provided visitors can open it |
| Description for assistive technology on a gallery | Listed as not violating | Make sure it says something real |
| Link attached to one small character | Matches a hidden link example | Replace with a visible, descriptive anchor |
| Block set to font size 0 | Matches a hidden text example | Remove it |
Sneaky Redirects: Intent Decides
Google defines sneaky redirecting as redirecting maliciously, either to show users and search engines different content or to show users content that does not meet their needs. A redirect is a normal part of running a site. The policy targets deception, not the mechanism.
The two examples Google gives
One example is showing search engines one type of content while redirecting users to something significantly different. The other is showing desktop users a normal page while redirecting mobile users to a completely different spam domain. The second example mentions mobile as part of the violation. The policy page does not list mobile redirects among legitimate uses.
Reasons the page accepts
Google states that sneaky redirection is a type of spam, yet legitimate, non-spam reasons exist to send one URL to another. The page names moving a site to a new address, consolidating several pages into one and redirecting signed-in users to an internal page. When examining a redirect, the page says to consider whether it is intended to deceive.
Moves and consolidations are also where status codes matter. Google's JavaScript SEO basics (Opens in a new tab) page says HTTP status codes can tell Googlebot that a page has moved to a new URL, so that the index can be updated. For fixing the technical side of that, see redirect chains and loops and how to fix them.
Decision rule: is this redirect deceptive?
Decision rule: before adding a redirect, answer three questions. Do Googlebot and a real visitor in the same situation reach the same destination? Does the destination satisfy the need the search result promised? Can you state the reason in one sentence, such as "the page moved", "two pages merged" or "signed-in users go to their dashboard"? Three yes answers mean the policy's question, whether the redirect is intended to deceive, is answered with no. Any hesitation is a reason to hold the redirect back.
Device and language redirects
Practical suggestion: if you need to send mobile visitors to a separate address, confirm that the target carries the same content and that Googlebot receives the same redirect. The same logic applies to redirects by language or region. Automatic language switching raises its own search questions, discussed in automatic language redirects on multilingual sites.
A Surf School Weighs Three Freelancer Proposals
Example scenario: a surf school runs a website with lesson pages, a booking widget, a seasonal banner and a members-only wave guide. A freelancer proposes three changes to speed up the site and lift traffic. Each one meets the policy headings in turn.
Proposal one: a hidden phrase block on every beach page
The freelancer suggests adding a block of phrases to every beach page, such as board hire, beginner lessons and wetsuit rental, and hiding it with a text colour matching the background. Hiding text in this way matches the first example on the hidden text list. If the aim is to describe services to readers, the phrases belong in visible service cards. If even the visible version adds nothing for the reader, it should not be published.
Proposal two: landing search visitors on a promotional page
The second proposal is to send visitors arriving from search to a seasonal offer page instead of the beach page they clicked. The search result shows one page while the visitor lands on another. That structure resembles the first sneaky redirect example. A legitimate version keeps the beach page as the destination and links to the offer page through a visible, clearly labelled link the visitor chooses to click.
Proposal three: a wave guide for members only
The third proposal is to restrict the wave guide to members. If Googlebot can see the full guide and Flexible Sampling guidance is followed, Google's policy does not consider that cloaking. If Googlebot sees only an excerpt while members see the full guide, the exception no longer covers it, because the condition is that Google can see the full content.
How the three come out
| Proposal | Policy match | Outcome |
|---|---|---|
| Hidden phrase block | Hidden text example | Reject; build visible service cards instead |
| Redirect to a promotional page | Sneaky redirect test | Reject; use a visible link to the offer |
| Members-only wave guide | Paywall and gating exception | Accept when Google sees the full content and the guidance is followed |
Putting this table in front of the freelancer keeps the discussion on one standard. A counter-proposal for each rejection helps as well: visible service cards, a labelled link and clear access terms.
When Nobody Meant It: Configuration Gaps
A gap between what Google sees and what visitors see does not need a bad actor. Layers of rules in a template, a cache and a firewall can add up to a gap nobody designed.
Layers that can produce a difference
| Layer | What can differ | Question to settle |
|---|---|---|
| Country or IP rule | A regional rule serves a bot request another version | Does Googlebot get the same page as a visitor in that region? |
| Device template | Desktop and mobile templates carry different text | Is the main content the same in both? |
| Login state | Signed-in users see a different body | Does a signed-out visitor see what Googlebot sees? |
| Cache or CDN | A separate cached copy exists for bot requests | Do the cached copies match in content? |
| Firewall or bot filter | A verified bot gets a different response | Does a verified Googlebot request receive the page a user receives? |
Practical suggestion: review each row once in writing and again whenever a rule changes. The rows are questions built on how the layers work, not examples Google lists.
JavaScript rendering is not a requester rule
Content that loads through JavaScript is not cloaking by itself, because rendering is not a requester-based decision. To see what Google sees, the JavaScript SEO basics documentation tells you to test with the Rich Results Test or the "URL Inspection" tool and look at the rendered HTML. If you use the interface in another language, the labels may look different. Wider rendering questions are covered in JavaScript SEO, rendering and indexing.
Firewall and CDN answers for bots
A firewall or edge rule that returns a different response to Googlebot produces the same symptom as cloaking, even when nobody intended it. The cause is configuration, but the outcome is that Google's view and the visitor's view diverge. Verification steps are in Googlebot access verification and WAF or CDN blocks.
Telling a rendering gap from a cloaking concern
| Aspect | Rendering difference | Cloaking concern |
|---|---|---|
| Why the gap exists | A script must run before content appears | The output changes according to who is asking |
| What the user sees | The rendered content | Something other than what Googlebot receives |
| How to test | Inspect the rendered HTML | Compare responses to two different requests |
| Fix | Keep key content available after rendering | Remove the requester-based logic |
Running Experiments Without Tripping the Policy
Teams that run conversion experiments ask whether the experiment itself counts as cloaking. Google's website testing documentation answers with three specific instructions.
Canonical links on the test URLs
For test URLs, Google prefers a canonical link over noindex. The reason given is that all the test URLs are close duplicates or variations of the original. Pointing them at the original tells Google which version you prefer. The page also warns that noindex can sometimes have unexpected bad effects in this situation.
A temporary redirect between versions
If the test redirects visitors from the original URL to a variation, Google asks for a temporary redirect rather than a permanent one. A temporary redirect tells search engines the change is not permanent, so they should keep the original URL in their index instead of replacing it with the redirect target.
A fixed end date
Google's page says to run a test only as long as necessary and notes that a good testing tool tells you when you have gathered enough data for a reliable conclusion. Once a test ends, it asks you to remove all test elements as soon as possible. It also warns that a test running longer than needed may be read as an attempt to deceive search engines, and Google may take action accordingly.
Pre-launch checklist for a test
- Googlebot and visitors receive variations under the same assignment rule.
- Test URLs carry a canonical link pointing at the original.
- Any redirect between the original and a variation is temporary.
- The experiment has an end condition and a named owner.
- Removing the test code has its own item on the task list.
Auditing Your Own Pages
Turning the three policies into a routine means checking the easy-to-verify items first and moving toward the ambiguous ones.
Six audit steps
- Search templates and stylesheets for font size 0, opacity 0, off-screen positioning and text colours that match the background.
- Mark keyword blocks and link lists in the page source that have no counterpart on the visible page.
- List every redirect rule, whether in the server, the CDN or a script, and write a reason beside each.
- For key pages, capture the rendered HTML in "URL Inspection" and compare it with what a browser shows.
- List running tests and experiments with start dates and owners.
- Review third-party scripts and theme settings for anything that changes content depending on the requester.
Three piles for every finding
Decision rule: sort every finding into one of three piles. Anything that matches a policy example, such as white-on-white text or a link on a single character, goes. Anything that matches the list of elements that do not violate the policy, such as accordions, tabs and screen reader text, stays. For the rest, write down the purpose; if you cannot, remove it. Removing an ambiguous item costs little compared with defending it later.
An evidence log
| Finding | Where | Policy fit | Decision | Owner |
|---|---|---|---|---|
| White-on-white text | Template footer | Hidden text example | Remove | Developer |
| Accordion with questions | Lesson page | Does not violate | Keep | Editor |
| Redirect from old beach address | Server rule | Legitimate move | Keep, note the reason | Developer |
| Region-based response script | CDN rule | Unclear | Compare Googlebot response, remove if different | Technical lead |
A log like this stops the team from reopening the same question at each audit, and the owner column keeps a fix from being left without a person responsible.
Wording for agency and theme contracts
Practical suggestion: when an agency or theme developer works on the site, write into the brief that no logic will change content based on who is requesting it and that redirects will be kept in a written list. The site owner bears the consequences, since the result lands on the site's visibility.
Manual Actions and the Record After a Fix
The spam policies page says violations can be detected by automated systems and by human review, which can result in a manual action. It adds that sites in violation may rank lower in results or not appear in results at all.
Where a notice appears
For site reputation abuse, the same page says Google will notify the site in the "Manual actions" report and in the Search Console message center. It also mentions a spam submission report that lets people report spam through Search Console. The page defines no separate notification route for cloaking, hidden text or sneaky redirects, so checking the "Manual actions" report regularly is a practical suggestion rather than a documented rule.
Writing down what was removed
Practical suggestion: remove the problem first, then write down what was removed and why. That record helps when an agency changes or someone asks later. After the fix, capture the rendered page again and confirm it matches the visitor view.
Doorway and Scaled Content Checks for the Same Pass
Cloaking, hidden text and sneaky redirects are not the only items on the policy page. Doorway abuse and scaled content abuse sit alongside them, and an audit that covers one should look at the others.
Beach pages that differ only by name
A set of location pages where only the place name changes carries doorway risk. A surf school with a page per beach, all sharing the same body text, would raise that question. The topic is developed in city and district service pages and doorway page risk.
Mass-produced text plus hidden blocks
When mass-produced text is combined with hidden blocks, a page is both worthless to readers and deceptive. Quality questions for programmatic pages are in scaled content abuse and programmatic SEO risks.
Four Beliefs That Lead Teams Astray
Hiding test variations from Googlebot to be safe
Google's testing page says not to show Googlebot one set of URLs and humans another. Serving the crawler the original while visitors get variations is exactly that pattern, so assignment rules should treat both audiences alike.
Leaving an experiment running just in case
A test that runs longer than necessary may be read as an attempt to deceive search engines, according to the same page. An end date and an owner turn a harmless test into a documented one.
Reading the screen reader exception as a keyword channel
The exception covers text intended to improve the experience of people who use screen readers. Filling that space with service names for ranking purposes does not fit the description and reintroduces the hidden text problem.
Choosing noindex for test URLs as the safe option
Google prefers a canonical link on test URLs and warns that noindex can sometimes have unexpected bad effects. Safe does not mean blocked from the index.
Frequently Asked Questions
Does a CDN rule that treats bots differently count as cloaking?
A firewall or edge rule that returns a different response to Googlebot produces the same symptom as cloaking, even when nobody intended it. Compare a verified Googlebot response with what a visitor receives and remove the requester-based logic if they differ.
Is a members-only article cloaking?
Google's policy page says it does not consider paywalled or gated content to be cloaking if Google can see the full content and the site follows Flexible Sampling general guidance. Showing Googlebot only an excerpt falls outside that condition.
Should A/B test URLs use noindex?
Google's website testing page prefers a canonical link pointing at the original and warns that noindex can sometimes have unexpected bad effects. Where a test redirects visitors, it asks for a temporary redirect.
How long can a test run?
Only as long as necessary. The page says a good testing tool tells you when you have enough data, and that a test running longer than needed may be read as an attempt to deceive search engines.
Does visually hidden screen reader text count as hidden text?
The policy page lists text that is only accessible to screen readers and intended to improve their users' experience among elements that do not violate the policy. Text stuffed with keywords for ranking purposes does not fit that description.
Where would a manual action appear in Search Console?
For site reputation abuse, the policy page says notification comes through the "Manual actions" report and the message center. It describes no separate channel for cloaking, hidden text or sneaky redirects.
Conclusion
Cloaking, hidden text and sneaky redirects are three versions of one idea: a deliberate gap between visitor and search engine. For each, Google's policy page also names a legitimate counterpart: gated content under Flexible Sampling, accordions and screen reader text, and redirects for moves and consolidations. Purpose is the dividing line. To audit your own site, scan templates for hiding rules, list every redirect with a reason and compare the rendered HTML with the visitor's view.
If writing clear, honest page copy that avoids keyword stuffing is hard to fit into your team's week, you can get expert drafts through our content writing service.
Post a comment
Please log in to leave a comment. Login