Link Safety

How to Tell If a Backlink Is From a Hacked Site

By BacklinkPrice Team · Dec 2, 2026 · 8 min read
Cover for How to Tell If a Backlink Is From a Hacked Site: a shield icon on a dark background

A link from a hacked site borrows a trusted domain reputation for spam. These checks show whether the linking page was injected, cloaked or redirected.

Quick answer: A backlink is likely from a hacked site when the linking page shows spam that its owner never published. Look for pharmacy, casino or loan links hidden on the page, cloaked content shown only to crawlers, sudden redirects for search visitors, and warnings in Search Console. Two or three of these signs together deserve an immediate check.

TL;DR: Check the page the way Google sees it, not the way a browser shows it. Use URL Inspection, a site search, and the Security issues report. A link on an injected page borrows a trusted domain for spam, so disavow it and tell the site owner.

Key takeaways

  • A hacked-site backlink sits on a page the owner never made, built to borrow the domain's reputation for spam.
  • Cloaking shows spam to crawlers and clean content to visitors, so the owner often sees nothing wrong.
  • Hidden links, injected pages, conditional redirects and foreign keyword pages are the main injection types.
  • Search Console's Security issues report and a site search are the fastest ways to confirm a hack.
  • A link on a hacked page can hurt you even though you did nothing wrong.
  • When the evidence is strong, disavow the domain and tell the site owner what you found.

Most hacked websites are not defaced. According to Site SEO AI Audit's 2026 guide, the attacker wants the site to keep working, because a healthy, trusted domain is exactly what makes the spam valuable. Instead of breaking the home page, the hack quietly adds content that benefits someone else: links to dubious shops, thousands of doorway pages, or redirects that send search visitors to scam sites.

The goal is usually the domain's reputation. According to GetReport's 2026 guide, the attacker's links on your pages help their own sites rank, and your visitors become their traffic. That is why a link from a hacked site is dangerous to receive: it ties your site to spam that lives on a domain Google otherwise trusts.

According to VMP Security's 2026 guide, link spam is one spoke under the SEO spam umbrella. The goal is concrete: plant links on hacked pages that point to the attacker's sites, so the domain authority bleeds out to them. Once you know where the links land, the pattern is obvious.

The injection signs to look for

None of these signals proves a hack on its own, but two or three together deserve an immediate check. Work through them in order, from the search results inward.

SignWhere to lookWhat it means
Spam titles in searchGoogle results for the site show pharmacy, casino or loan titlesInjected pages are indexed
Hidden linksPage source shows links that the rendered page hidesLinks were planted, not published
Cloaked contentCrawlers see spam, visitors see clean contentThe server lies about the page
Conditional redirectSearch visitors go to a scam site, direct visits look normalThe hack fires only for some visitors
Foreign keyword pagesLarge numbers of auto-generated pages in another languageA keyword hack built doorway pages
Sudden unrelated outbound linksReal pages gain links to shops the site never coveredThe injection edits live content
Security issues warningSearch Console flags the siteGoogle already found the hack

According to GetReport's 2026 guide, the injected code checks who is asking before it answers. User-agent cloaking looks for Googlebot in the request and serves spam only then. Referrer cloaking looks at where the visitor came from, so arriving from Google triggers a redirect while typing the address does not.

According to Site SEO AI Audit's 2026 guide, the first evidence usually comes from search data, not from the site itself. Search Console shows impressions or clicks for queries that have nothing to do with the business, often in a language the site does not publish in, and the number of indexed pages jumps without any content project behind it.

How to check the way Google sees it

Start with a site search. According to Web.dev's cloaked keywords guide, opening Google Search and typing a site search with the root URL shows the pages Google has indexed for the site, including the hacked pages. Look at a couple of pages of results to see if you spot any unusual URLs.

Then use URL Inspection in Search Console. According to Web.dev's cloaked keywords guide, the URL Inspection tool lets you see the underlying hidden content, and the fetch tool shows what Googlebot receives. If the fetched version shows gibberish text or links that the live page hides, the page is cloaked.

According to GetReport's 2026 guide, checking a hacked site takes 5 minutes, while cleanup takes an afternoon to a day, and a security review then takes a few days to a few weeks.

Also check the sitemap and the admin accounts. According to Site SEO AI Audit's 2026 guide, the XML sitemap can contain URLs nobody recognises, or a second sitemap can be referenced in robots.txt. New administrator accounts, plugins or files that nobody on the team added are another sign the site is compromised.

According to Web.dev's cloaked keywords guide, hackers often monetise the hack by selling the links on the hacked pages to different third parties. The hacked pages also redirect visitors to an unrelated page where hackers can earn money. That is why a hacked-site link is never a bargain, whatever the price.

When the evidence is strong, disavow the domain. Export the domain from your backlink report, add it to a disavow file, and upload it in Search Console. A disavow tells Google you do not want the link counted, which is the fastest way to cut the association.

Tell the site owner what you found. Most hacked-site owners do not know they were hacked, and a short message with the spam URL and a screenshot helps them clean up. According to GetReport's 2026 guide, the cleanup order is to freeze the evidence, update everything, find and remove the injection and the backdoor, reinstall code from clean sources, and change every password and key.

Do not pay for a link on a hacked page, and do not accept one as a replacement for a lost placement. According to VMP Security's 2026 guide, cleaning the visible spam without removing the backdoor means it grows back, often within days. A site that was hacked once and never fixed is a site that will be hacked again.

FAQ

Yes. The link ties your site to spam on a domain Google otherwise trusts, and Google may devalue the link or judge your profile by the company it keeps. Disavow the domain when the evidence is strong.

Why does the linking page look clean in my browser?

Because the hack is cloaked. The server shows spam to crawlers and clean content to visitors, so the owner often sees nothing wrong. Check the page with URL Inspection or fetch it as Googlebot.

SEO spam is the umbrella: any hack that hijacks a search presence with injected keywords, cloaked pages, or sneaky redirects. Link spam is one spoke under it: planted links that pass a domain's authority to the attacker's sites.

How do I find hacked pages on a site I do not own?

Run a site search for the domain and look for titles you would not expect. Check the sitemap for unknown URLs, and look for sudden unrelated outbound links on real pages.

Should I tell the site owner about the hack?

Yes. Most owners do not know they were hacked. A short message with the spam URL and a screenshot helps them clean up, and it protects your own profile in the meantime.

No. A PBN link comes from a site built to sell links. A hacked-site link comes from a real site that someone broke into. Both are link spam, but the hacked link is also a security problem for the site owner.

Expert verdict

A hacked-site link is the easiest bad link to misjudge, because the domain looks trustworthy and the page looks clean. The check is to look at the page the way Google sees it, not the way a browser shows it. A site search, URL Inspection, and the Security issues report will show you the truth in minutes.

The practical rule is simple. If the linking page carries spam its owner never published, the link is not worth having at any price. Disavow the domain, tell the owner, and move on. A link that depends on someone else's security failure is a link that will disappear the day the site gets cleaned up.

This check is best for site owners who see strange titles or sudden traffic drops in Search Console.

Manual action for unnatural links explains what Google does when it finds a manipulative profile.

What is a toxic backlink covers the links that can hurt your site and how to handle them.

Backlink quality metrics shows which numbers actually describe a link worth keeping.

How to get backlinks for a new website covers safe first links for a young site.

Are cheap backlinks safe explains why low-price placements often come from networks like this one.

Backlink checker lets you pull the referring domains you need for an audit like this one.

Bottom line

A hacked-site backlink borrows a trusted domain's reputation for spam. Check the page as Google sees it, look for cloaking, hidden links and sudden redirects, and disavow the domain when the evidence is strong. Tell the owner, too: most of them do not know they were hacked.

Sources

BacklinkPrice Team
Written by
BacklinkPrice Team
Link building and backlink pricing research

The BacklinkPrice Team researches backlink prices, publisher sites and link building tools. We check prices and plans against each provider's own pages and date them, so you know how current the numbers are.

More from BacklinkPrice Team

Related guides