How to Find Backlinks from Hacked Sites in Your Profile

Find links from hacked sites by hunting for injected pages, cloaked content and security flags in your backlink export. A link from a hacked site is one the owner never approved.
Quick answer: Find backlinks from hacked sites by exporting your links, then checking the linking domains for injected pages, hidden links and cloaked content. A hacked site shows odd URLs, foreign-language spam pages or content that only appears to Googlebot, and Google's Security Issues report confirms the worst cases.
TL;DR: A link from a hacked site is a link from a page the owner never approved. Check the linking page as Google sees it, look for injection signs and treat a security flag as a reason to act.
Key takeaways
- Hacked content is content placed on a site without permission through a security hole, according to Google's spam policies.
- Google lists four forms: code injection, page injection, content injection and redirects.
- A hacked site often shows pages in a language it never uses, or products it never sells.
- Check the linking page with URL Inspection, since many hacks change only what Googlebot sees.
- A manual action or security flag is the clearest reason to remove or disavow the link.
What a hacked-site link is
A hacked-site link points to your site from a page the site owner never approved. Attackers break into a site, inject their own pages or links, and use the domain's reputation to rank their own pages. Your link sits on a page that exists only because of the break-in.
Google's spam policies define hacked content as any content placed on a site without permission because of security vulnerabilities. The policy lists four forms, and it states that sites violating its policies may rank lower or not appear in results at all, according to Webometrics' 2026 guide.
The four forms are code injection, page injection, content injection and redirects. Code injection puts malicious code, often JavaScript or iframes, into existing pages. Page injection adds whole new spam pages, often to manipulate search engines or for phishing.
Content injection alters existing pages with hidden links or text, or with cloaking. Redirects send some users to harmful or spammy pages depending on referrer, user agent or device.
The attacker hides the spam on purpose. Spam that every visitor could see would be removed within days, so it is served selectively, and Google's spam policies name the practice cloaking: showing search engines different content from what users get.
Hunt in your backlink export
Start with the export. Open Google Search Console, go to Links and export the top linking sites, then sort the list by domain and look for the domains that do not fit your niche, your language or your market.
Flag any domain whose pages look wrong for its owner. A travel blog linking to a pharmacy, a university site linking to a casino or a local business site with pages in Japanese are the classic signs. CleanTalk's 2026 guide describes the same hunt: odd Japanese results for a site search, spam URLs in a sitemap and pages selling products the site does not sell.
Run a site search on each suspect domain. Type the domain into Google with the site operator and scan for unusual URLs, such as pages in a language the site does not use or pages selling products the site does not sell, as Relevant Audience's 2026 cloaking guide recommends.
Check the dates too. A domain that linked to you for years and suddenly starts linking from new spam pages may have been hacked recently, while a domain that never had a real site at all is more likely a link farm than a hacked site.
How to spot a fake niche edit covers a related check, since a placement on a page that was never meant to carry it leaves the same kind of footprint.
Check the linking page as Google sees it
Many hacks change only what Google's crawler sees, so opening the page in your browser is not enough. Google itself recommends URL Inspection for this check, because it shows the page as Google fetched it.
Open Search Console and run URL Inspection on the linking URL. Compare what Google fetched with what you see in a browser. If the two differ, and the fetched version carries spam links or text you cannot see, the page is cloaked.
Cloaking is the delivery mechanism behind the common hacks. A hacked travel blog that shows discount-pill pages only to Googlebot is the textbook example from Google's policy, as CleanTalk's 2026 guide explains.
Check the page source and the server rules as well. The cloaked keywords hack often hides in the server config as a rewrite rule pointing to a malicious script file, and the site owner may not know it is there.
How to do a backlink audit walks through the wider review, from exporting the links to deciding what each problem link needs.
The four hack patterns to recognize
Each hack pattern leaves a different footprint, and knowing the pattern tells you what to check next.
| Hack form | What Google describes | What it looks like on a linking site |
|---|---|---|
| Code injection | Malicious code, often JavaScript or iframes, inserted into existing pages | A homepage that loads an unknown external script |
| Page injection | New pages added to a site, often to manipulate search engines or for phishing | Unfamiliar pages on legal, gambling or pharma topics |
| Content injection | Existing pages altered with hidden links or text, or with cloaking | A news page that carries invisible keyword links |
| Redirects | Code that sends some users to harmful or spammy pages | Search visitors landing on a casino or pharmacy |
The Japanese keyword hack is the best-known page injection. The attacker generates new pages full of auto-generated Japanese text under random directory names, monetized with affiliate links to stores selling counterfeit brand goods, according to CleanTalk's 2026 guide.
The pharma hack is the best-known content injection. The attacker injects pharmaceutical terms and links into existing pages, often in a way visitors cannot see but crawlers read, and Search Console reports this class as hacked content with injected spammy links or text.
Hiding the spam is the whole technique. Spam that every visitor could see would be removed within days, so it is served selectively. Google's spam policies name the practice cloaking, and state that when a site is hacked, it is not uncommon for the hacker to use cloaking to make the hack harder for the owner to detect.
According to Webometrics' 2026 guide, Google's spam policies list four forms of hacked content: code injection, page injection, content injection and redirects. Affected pages can rank lower, drop out of results or appear with a warning label in search results.
What to do with a hacked-site link
Remember that the site owner is a victim, not a spammer. The link came from a break-in, so telling the owner is often more useful than disavowing, and a fixed site may keep linking to you from a clean page.
Contact the owner first when you can find one. Point at the linking URL, describe what you saw in URL Inspection and ask them to clean the injection. Many owners have no idea their site was hacked until someone tells them.
Check your own Security Issues report too. If a Google evaluation finds your site was hacked, the report will show the findings, and pages can appear with a warning label in search results.
Disavow only in the narrow cases Google describes. If you have a manual action for unnatural links, or a considerable number of spammy links that are likely to cause one, disavow the domains you cannot get cleaned. A single link from a hacked site, with no manual action and no traffic drop, rarely justifies a disavow file.
Monitor the domain after you act. Check the linking page again a week later and confirm the injection is gone before you close the case, since a hack can return if the owner only removed the visible spam.
How to spot a backlink scam covers the seller side, since hacked pages are also sold as cheap placements by vendors who never mention the break-in.
Frequently Asked Questions
How do I know a linking site is hacked?
Look for pages in a language the site never uses, products it never sells or URLs that do not fit its topic. Then check the linking page with URL Inspection, since many hacks change only what Googlebot sees, as CleanTalk's 2026 guide explains.
Is a link from a hacked site dangerous?
It can be. The link sits on a page Google may treat as spam, and the linking site may rank lower or carry a warning label. The risk to your site is low on its own, unless the pattern is large or comes with a manual action.
Should I disavow links from hacked sites?
Usually not at once. Google's disavow help page states that most sites will not need the tool, and it should be used only when spammy links caused, or are likely to cause, a manual action. Tell the site owner first, and disavow only what you cannot get cleaned.
Can I ask the site owner to remove the link?
Yes, and it often works, since the owner is a victim of the hack. Describe the linking URL and what you saw in URL Inspection, and ask them to clean the injection rather than just removing your link.
How do hacked sites get my link?
Attackers inject links into pages they control after breaking in, often with cloaking so the owner never sees them. The link is usually one of many, placed to pass the hacked domain's reputation to the attacker's own pages.
Expert verdict
Best for: sites whose backlink export shows linking domains with odd languages, odd topics or pages the owner never made.
Not for: a site with a clean export and no manual action, where a hacked-site hunt adds work without a problem to solve.
Pros: URL Inspection shows what Google actually sees; telling the owner often fixes the link; the checks cost nothing beyond Search Console.
Cons: a backdoor can regrow spam within days; some owners never reply; a disavow file cannot fix a hacked linking site.
Backlink quality metrics give the hunt its yardstick, since authority, traffic and relevance say more about a linking domain than any single score does.
The backlink checker tool gives a second view of the same profile, which is useful when the Search Console sample and a paid tool disagree about a domain.
Bottom line
Export your links, flag the domains that do not fit, and check the linking page as Google sees it with URL Inspection. Tell the owner, disavow only with a manual action or a large pattern, and recheck a week later to confirm the injection is gone.
Sources
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 TeamRelated guides





