Hidden Text and Links: What Google’s Spam Policy Bans and Allows on a Trades Website
Some older SEO agencies hid keyword lists in the footer or behind images. Google’s spam policy names this as hidden text and links. If an old developer touched your site, it is worth checking. This guide explains the policy and how to audit a page.
I am Robiul Alom Ronju, Founder of Nexranking. The policy points are from Google Search Central. My advice for trades is marked as mine.

What Google bans
- Text or links placed where search engines can read them but people cannot easily see them.
- Matching the text colour to the background, hiding text behind an image, moving it off-screen with CSS, or setting the font size or opacity to zero.
- Making only a single tiny character a link so it hides inside a paragraph.
What Google allows
Accordions, tabs, sliders, tooltips and screen-reader-only text are acceptable. A frequently asked questions section that opens on tap is fine, as long as it is there for people.
Hackers do it too
Google says hackers often inject hidden text or links into existing pages. A trades site on an old plugin can carry hidden pharmaceutical or casino links without the owner knowing.
How I would audit a page
This is my own advice. View the page source and search for display:none, font-size:0 and left:-9999px. Use the browser’s Inspect tool on the footer. Look at what Google’s cached copy or the URL inspection tool shows. See the URL inspection guide. Compare what a visitor sees with what the source contains.
A ten minute site check
- Open your home page and right-click, then View page source.
- Search the source for display:none, font-size:0 and text-indent:-9999px.
- Look at the footer and the end of the main text in Inspect.
- Check the last five plugins or themes installed and when.
- Search Google for site:yourdomain.co.uk plus words like casino, pills or loans.
- Ask your host whether they offer a malware scan.
Why a small site can still be targeted
Hackers do not choose sites by size. They look for old plugins and weak passwords. A small trades site can carry hidden links for months because nobody looks at the source. Keeping software updated is the cheapest protection.
A worked example
Illustrative example, not a client case. A heating firm takes over a site from a previous agency. In the footer, white text on a white background lists 40 towns with the words boiler repair after each. That matches Google’s description of matching text colour to background and of listing places to rank for. The fix is to delete the block and, if the pages for those towns have real content, link to them in a visible, useful way.
Mistakes I see
- Hiding a list of towns in the footer.
- Using font size zero for keywords.
- Leaving a hacked plugin unpatched.
- Confusing a normal accordion with hidden text.
- Never viewing the page source after a developer change.
For next steps, ask for an audit and read the spam policies guide for trades.
Is an accordion hidden text?
No. Google lists accordions, tabs, sliders and tooltips as acceptable.
What does Google ban?
Text or links people cannot easily see, such as text matching the background colour or zero font size.
Can hackers add hidden links?
Yes. Google says hackers often inject hidden text or links.
What happens if I break the policy?
Google may rank the site lower or remove it from results, and manual actions are possible.
How do I find hidden text?
Check the page source and compare it with what a visitor sees.
Related guides
- Cloaking: Why Showing Google a Different Page Is Spam, and What Is Fine on a Trades Site
- Keyword Stuffing on Trades Websites: Town Lists, Phone Number Blocks and What Google Says
- Link Spam and Buying Links: What Google Says Trades Businesses Should Avoid
Browse every guide in the local SEO guides for trades hub.
Sources
- Google Search Central, Spam policies for Google web search: https://developers.google.com/search/docs/essentials/spam-policies