# Eliminate manipulative hidden text and links

- Check 47.02 · Practices to avoid · Critical
- Source: https://checklist-seo-geo.com/en/practices-avoid/eliminate-manipulative-hidden-text-links
- Detect text and links hidden from visitors but read by search engines (CSS, color, off-screen, hacking), remove them and hide properly what needs hiding.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/practices-avoid/eliminate-manipulative-hidden-text-links.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

Manipulative hidden text and links are content placed in a page's code for search engines but made invisible to visitors: white text on a white background, a zero font size, a block positioned off-screen, a link set on a single character. Google lists them among spam practices. This check consists in detecting them, removing them and telling apart what remains legitimate: tabs, accordions, text intended for screen readers. Expected result: everything a crawler reads on the page, a visitor can see or reveal.

## Why it matters

Google's spam policies define hidden text or link abuse as placing content solely to manipulate search engines, without it being easily viewable by people. The examples given: white text on a white background, text hidden behind an image, CSS that positions text off-screen, a font size or opacity set to zero, a link applied to a single small character such as a hyphen.

The same page specifies what remains allowed: accordions and tabs, slideshows, tooltips, and text accessible only to screen readers to improve their experience. The line therefore depends on intent and access: content the visitor can reveal, or that serves accessibility, is legitimate; content nobody is meant to see is not.

Hidden text is not always deliberate. A hacked site often receives hidden links to pharmacy, gambling or counterfeit sites, sometimes served to crawlers only. A free theme can also ship invisible links to its developer. In every case, it is your site that is exposed to the “Hidden text and/or keyword stuffing” manual action and to the loss of visibility.

On the generative engine side, a crawler that extracts text from the HTML without applying the CSS reads hidden content like the rest: this text can therefore weigh on what it understands of the page, without you seeing it. Hidden instructions aimed at AI belong to a dedicated check: [eliminate manipulative prompt injection](https://checklist-seo-geo.com/en/practices-avoid/eliminate-manipulative-prompt-injection).

## What it improves

- **Compliance**: removes an explicit ground for a manual action.
- **Security**: looking for hidden links often uncovers a hack that went unnoticed.
- **Trust**: no more invisible outbound links to dubious sites associated with your domain.
- **Accessibility**: proper hiding (a class reserved for screen readers, `<details>`) replaces makeshift fixes that get in the way of assistive technologies.
- **Reading by AI**: what crawlers extract from the page matches what the visitor sees. Effect on citations not measurable.
- **Rankings**: no direct gain, except when a manual action is lifted.

## How to check

**1. Search Console reports.** The [Manual actions report](https://search.google.com/search-console/manual-actions) should show a green check mark. Also check the “Security issues” report: injected content is flagged there.

**2. Select all.** This is the tip Google gives: on the page, press `Ctrl+A` (`Cmd+A` on Mac). Text in the same color as the background shows up highlighted.

**3. The console script.** Open the browser's developer tools (`F12`), Console tab, and paste this script. It lists text elements made invisible by a zero font size, zero opacity, a color identical to the background, a negative indent or an off-screen position, then the external links found in hidden blocks:

```js
(() => {
  const background = (el) => {
    for (let n = el; n && n !== document.documentElement; n = n.parentElement) {
      const c = getComputedStyle(n).backgroundColor;
      if (c && c !== "rgba(0, 0, 0, 0)" && c !== "transparent") return c;
    }
    return "rgb(255, 255, 255)";
  };
  const width = document.documentElement.scrollWidth;
  const suspects = [];
  document.querySelectorAll("body *").forEach((el) => {
    const own = [...el.childNodes].filter((n) => n.nodeType === 3).map((n) => n.textContent.trim()).join(" ");
    if (!own && el.tagName !== "A") return;
    const s = getComputedStyle(el);
    const r = el.getBoundingClientRect();
    const reasons = [];
    if (parseFloat(s.fontSize) < 2) reasons.push("near-zero font size");
    if (parseFloat(s.opacity) === 0) reasons.push("opacity 0");
    if (own && s.color === background(el)) reasons.push("background color");
    if (parseFloat(s.textIndent) < -500) reasons.push("negative indent");
    if (r.width > 0 && (r.right < -100 || r.left > width + 100)) reasons.push("off-screen");
    if (el.tagName === "A" && el.textContent.trim().length === 1) reasons.push("link on 1 character");
    if (reasons.length) suspects.push({ balise: el.tagName, texte: (own || el.textContent).trim().slice(0, 80), lien: el.href || "", raisons: reasons.join(", ") });
  });
  console.table(suspects);
  const hiddenLinks = [...document.querySelectorAll("a[href^='http']")]
    .filter((a) => a.hostname !== location.hostname && a.getClientRects().length === 0)
    .map((a) => ({ lien: a.href, ancre: a.textContent.trim().slice(0, 60) }));
  console.table(hiddenLinks);
})();
```

Sort through the result: a collapsed mobile menu or a social icon hidden on desktop is normal; a list of queries or a link to a casino is not. An old accessibility class that places text at `left: -10000px` will also show up: it is legitimate if the text serves screen readers.

**4. The raw HTML, as a crawler sees it.** Hacks sometimes serve hidden links to crawlers only. Compare:

```bash
curl -s https://example.com/ | grep -o -i -E 'style="[^"]*(display: ?none|visibility: ?hidden|font-size: ?0|left: ?-[0-9]{3,})[^"]*"[^>]*>.{0,200}' | head -20
curl -s -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" https://example.com/ | grep -o -i '<a [^>]*href="http[^"]*"' | sort -u | head -50
```

The second command lists the links served to an agent that presents itself as Googlebot: any unknown domain is suspect. To see what the real Googlebot receives, use the [URL Inspection tool](https://search.google.com/search-console/inspect), “Test live URL”, then “View tested page”, HTML tab.

Compliant result: no manual action or security issue, no query text or invisible external link in either table.

## How to implement

### Before you start

| Case | Verdict | What to do |
|---|---|---|
| Tabs, accordion, “Read more” that the visitor can open | Allowed | Keep it; the content must be in the HTML |
| Text intended for screen readers (icon label, skip link) | Allowed | Use a standard accessibility class |
| Mobile menu hidden on desktop, and vice versa | Allowed | Check content parity between versions |
| Paragraph of keywords in white, in a tiny font or collapsed with no button | Prohibited | Remove it, or make it visible and useful |
| Links to third-party sites in `display: none` in the footer | Prohibited | Remove them and find the source (theme, hack) |
| Text behind an image or under an opaque layer | Prohibited | Remove it |
| Link set on a period or a hyphen | Prohibited | Remove it |

To visually hide text that is useful to screen readers, use this class, adopted by most frameworks:

```css
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
```

For collapsible content, the native HTML element is enough and remains readable by crawlers:

```html
<details>
  <summary>How quickly can you come out?</summary>
  <p>Within two hours in Nantes for a leak, within 48 hours for servicing.</p>
</details>
```

### WordPress

Versions: WordPress 6.4 and later, WP-CLI 2.x.

1. **Theme**: look for hidden links and styles in the files of the active theme and its parents:

```bash
grep -rn -i -E "display: ?none|visibility: ?hidden|font-size: ?0|text-indent: ?-[0-9]{3,}" wp-content/themes/ | grep -i "href" | head -50
```

2. **Database**: injections often hide in content, widgets or options. With WP-CLI:

```bash
wp db search "display:none" --all-tables
wp db search "font-size:0" --all-tables
```

3. **Modified files**: `wp core verify-checksums`, then `wp plugin verify-checksums --all`, flag files that differ from the official versions. A scan with Wordfence or Sucuri completes the check.
4. **Page builders**: in Elementor, the `Advanced > Responsive` option hides a block depending on the device. It is legitimate for layout, but a text block present on only one version creates a content gap: see [check mobile/desktop content parity](https://checklist-seo-geo.com/en/mobile-first-responsive-design/check-mobile-desktop-content-parity).

If injected links show up, deal with the hack first: see [monitor for hacking and content or link injection](https://checklist-seo-geo.com/en/security-infrastructure/monitor-hacking-content-link-injection).

### Shopify

Versions: Shopify admin, all plans, November 2026.

Open `Online Store > Themes`, the “…” menu of the published theme, “Edit code”. Search for `display: none` and `visibility: hidden` in the sections and snippets, especially those that contain links. Apps can also inject code: uninstall the ones you no longer use and check the app blocks in the theme editor (`Customize`).

### Webflow

Versions: Webflow Designer, November 2026.

Elements hidden with `Display: None` (Style panel, Layout section) remain listed in the Navigator. Review each breakpoint: a text block hidden at every screen size no longer has any reason to be published. Delete it rather than leaving it in the HTML.

### Shared hosting

On shared hosting, an injection can sit outside the CMS: a `.htaccess` file, a `.user.ini` file with `auto_prepend_file`, unknown PHP files. Use the hosting provider's malware scanner (Imunify360 on many cPanel servers) and compare file modification dates with your latest updates.

### Laravel

Versions: Laravel 11 to 13.

Look in the Blade views and stylesheets for rules that hide text or links:

```bash
grep -rn -i -E "display: ?none|font-size: ?0|text-indent: ?-[0-9]{3,}" resources/views resources/css | head -50
```

To hide text intended for screen readers, use Tailwind CSS's `sr-only` class or the `.visually-hidden` class above, never keyword text.

### Next.js

Versions: Next.js 15 and 16 (App Router).

The same rules apply to React components. For collapsible content, prefer `<details>` or an accordion component that leaves the text in the server-rendered HTML: content missing from the HTML is not “hidden”, it is invisible to crawlers that do not execute JavaScript.

## Common mistakes

- **Confusing legitimate hiding with hidden text**: removing an FAQ accordion for fear of a penalty loses useful, allowed content.
- **Testing only in the browser**: links injected by a hack are sometimes shown to crawlers only.
- **Keeping an “SEO text” collapsed with no button** so as not to spoil the design: this is exactly what Google describes.
- **Turning a free theme's links white** instead of removing them or owning them.
- **Removing the symptom without looking for the vulnerability**: the links come back on the hacker's next visit.
- **Hiding text with `left: -9999px` for accessibility** with no accessibility reason: the technique is neutral, the intent is not.

## Frequently asked questions

### Is content in an accordion or tabs considered hidden?

No. Google's spam policies explicitly mention accordions, tabs, slideshows and tooltips among the elements that comply with its policies. The visitor can reveal this content in one click. The condition is that the text is useful and present in the HTML; a paragraph of keywords collapsed with no button to open it is still hidden text.

### Is text intended for screen readers risky for SEO?

Text intended for screen readers is explicitly allowed by Google when it improves the experience of people using assistive technologies: the label of an icon button, a skip link, extra detail on a link. The risk only arises if the technique is used to place keywords that nobody would read. Use a standard class such as sr-only or visually-hidden, for short, useful text.

### How do I know whether my site contains hidden links injected by a hacker?

Compare the HTML received by a browser and by an agent that presents itself as Googlebot, then use Search Console's URL Inspection, which shows the HTML received by the real crawler. Look for links to unknown domains, often in display: none blocks. Also check the Security issues report, then verify the integrity of the CMS files.

### Can a hidden link in the footer penalize the whole site?

A manual action for hidden text can target part of the site or the whole site: the Search Console report states the scope. An invisible link repeated in the footer appears on every page, which makes it a visible pattern. Remove it from the template, find its source, then request a review if a manual action has been applied.

## Resources

- [Google Search Central: spam policies, hidden text and links](https://developers.google.com/search/docs/essentials/spam-policies?hl=en#hidden-text-and-links)
- [Search Console Help: Manual actions report](https://support.google.com/webmasters/answer/9044175?hl=en)
- [Search Console Help: URL Inspection tool](https://support.google.com/webmasters/answer/9012289?hl=en)
- [web.dev: help for hacked sites](https://web.dev/articles/hacked)
- [W3C: technique C7, using CSS to hide a portion of the link text](https://www.w3.org/WAI/WCAG22/Techniques/css/C7)
- [MDN: the details element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details)
- [WP-CLI: wp db search](https://developer.wordpress.org/cli/commands/db/search/) and [wp core verify-checksums](https://developer.wordpress.org/cli/commands/core/verify-checksums/)

Next steps: [eliminate deceptive cloaking](https://checklist-seo-geo.com/en/practices-avoid/eliminate-deceptive-cloaking) and [monitor for hacking and content or link injection](https://checklist-seo-geo.com/en/security-infrastructure/monitor-hacking-content-link-injection).
