Hidden Link Injection
Attackers hide outbound links in your templates and content to pass authority to their own sites. Where the links hide, how to find them, and how to remove them safely.
Cyber Security Space editorial desk · Published 18 Jun 2026 · Updated 20 Aug 2026 · 2 min read · Reviewed 20 Aug 2026
Short answer
Hidden link injection is an attack in which spam outbound links are added to a website and then made invisible to human visitors — through CSS, zero-size elements or off-screen positioning — so that search engines still count the links while the site owner does not notice them.
Key takeaways
- Hidden links are invisible in the rendered page but present in the HTML source, so source inspection and DOM style checks find them when the eye cannot.
- The most common locations are footer templates, widget areas, plugin caches and old post content in the database.
- The attacker's goal is authority transfer, so the anchor text is usually commercial and unrelated to your site.
- Removal must cover both template files and stored content, or the links reappear on the next cache rebuild.
Frequently asked questions
- Are hidden links a Google policy violation?
- Yes. Links placed to manipulate rankings fall under Google's link spam policies, and hiding content from users is treated separately as deceptive. Both can lead to a manual action even when the links were injected by an attacker.
- Can hidden links exist without the site being hacked?
- Occasionally. Some commercial themes and outdated plugins shipped sponsored footer links by design. Those still harm the site and should be removed, but the incident response is different from a compromise.
- Do I need to disavow the injected links?
- No. Disavow addresses inbound links. Injected outbound links are removed at the source, on your own site.
Sources
- Link spam policies — Google Search CentralSupports: Classification of manipulative links and hidden content.
- Content Security Policy — MDN Web DocsSupports: Using CSP to limit the impact of injected markup.
Read next
SEO Spam
Japanese Keyword HackAn SEO spam attack that injects Japanese-language pages into a compromised site to hijack search listings. How it works, how to confirm it, and how to clean up.
SEO Spam
CloakingCloaking serves different content to search engines than to people. It is the mechanism that keeps most injected spam invisible to site owners.
SEO Spam
How to Remove Injected Spam LinksRemoving injected outbound links without breaking your templates — and making sure they do not come back on the next cache rebuild.
Website Security
SEO Spam: The Complete PictureThe pillar page for injected search spam: the attack family, how the variants relate, and the detection and remediation path shared by all of them.