Link Safety

How to Spot a Hacked Site Before Buying a Link

By BacklinkPrice Team · Dec 2, 2026 · 9 min read
Cover for How to Spot a Hacked Site Before Buying a Link: a buyer guide with a shield icon on a red background

A hacked site can pass you a link Google already distrusts. Run a site: search, test the page from a search click, and check the security warnings before you pay for a link.

Quick answer: A hacked site often looks normal to its owner while serving spam pages to Google, so check it from the outside before you pay. Run a site: search, click a result from Google, and look for Japanese listings, pharmacy ads, or casino redirects. According to Malcare, in 2026, hacked sites use cloaking to show different content by visitor or device, so one clean homepage view proves nothing.

TL;DR: Search the domain with site:, click through from Google, and check for security warnings. A site that shows spam to crawlers but a clean page to you is hacked, and a link from it is worth nothing.

Key takeaways

  • Hacked sites use cloaking, so the owner sees a clean page while Google sees spam, according to Malcare, in 2026.
  • A site: search is the fastest check: Japanese listings, pharmacy keywords, or loan ads under the domain mean SEO spam.
  • The Japanese keyword hack creates new pages of auto-generated Japanese text, according to CleanTalk, in 2026.
  • The pharma hack injects drug terms and links into existing pages, according to CleanTalk, in 2026.
  • Visitors arriving from Google may be redirected to casinos or scams while direct visitors see a normal page.
  • A link from a hacked site is worth nothing, and tell if a backlink is from a hacked site before you pay for one.

Why a hacked site looks clean to you

The mental image of a hacked website is mostly obsolete. Modern compromises are businesses, and businesses do not vandalize their assets. An attacker who controls a site earns more by keeping it looking normal: quietly hosting phishing pages in a subdirectory, injecting pharmaceutical spam links only search engines see, or skimming payment details from a checkout. The most dangerous hacks are the ones designed to be invisible to exactly one person: the owner.

The trick is cloaking, which serves different content depending on the visitor, the referrer, the device, the location, or the login state. A redirect may appear only after someone arrives from Google. Spam pages may show to search engines but return a 404 or redirect home when opened directly. That is why a site owner may see a normal page while a customer sees a redirect or a fake login form.

A normal-looking homepage is not enough to prove that a site is clean. According to Malcare, in 2026, the signs of a hack can appear in Google, in a visitor's browser, inside WordPress, or in hosting and email accounts, so a complete check has to compare more than one surface. One clean view proves nothing, and one strange event proves nothing either.

A single symptom is not proof of malware. A failed update, a certificate problem, a traffic spike, or a routine bot request can have an ordinary explanation. Use the signs below to decide what to investigate, and treat a case as strong only when what visitors see, what Google reports, and what changed inside the site all point the same way.

The four common hacks

Attackers use a small set of techniques, and each one leaves a different trace. Learn the four, because the check for each one is different.

HackHow it worksWhat you see from outside
Japanese keyword hackNew pages of auto-generated Japanese text under random directory namesOdd Japanese results for a site: search
Pharma hackDrug terms and links injected into existing pagesPharmacy keywords in search results for the domain
CloakingDifferent content by user agent, IP, or referrerClean page to you, spam pages to Googlebot
Search-only redirectsVisitors from Google are bounced to a scam siteCustomers report casino or scam redirects you cannot reproduce

The Japanese keyword hack is the most common visible form. According to CleanTalk, in 2026, 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. You usually never see these pages unless you search for them.

Google's own guide for this hack lists the typical signs: odd Japanese results for a site: search, spam URLs in the sitemap, and a notification that someone you do not know has verified the site in Search Console.

The pharma hack works differently. Instead of new pages, the attacker injects pharmaceutical terms and links into existing pages, frequently in a way that visitors cannot see but crawlers read. Search Console reports this class as hacked content with injected spammy links or text. The page you open looks normal, while the version Google indexed carries the spam.

Cloaking is the delivery mechanism behind the first two hacks. The site returns one page to a human browser and another to a crawler, deciding by user agent, IP address, or referrer. A hacked travel blog that shows discount-pill pages only to Googlebot is the textbook example from Google's policy.

Search-only redirects complete the set: visitors who arrive from a Google result are bounced to a scam or casino site, while visitors who type the address, including the owner, see a normal page.

Find backlinks from hacked sites in your own profile too, because a hacked site that linked to you can pass the same problem on to your pages.

The five-minute check before you pay

Run these checks in order. They need no login, no paid tool, and no access to the seller's site.

  • Search site: plus the domain in Google and read the results. If you see Japanese product listings, essay-writing services, luxury handbags, or pharmaceutical keywords under the domain, the site is hosting SEO spam.
  • Click a result from Google, not from the address bar. A search-only redirect fires only for visitors who arrive from search, so typing the address yourself will miss it.
  • Open the page on a phone as well as a desktop. Some redirects fire only on mobile, and a desktop-only check will miss them.
  • Check the browser warning. A red interstitial that says deceptive site ahead means Google Safe Browsing has already flagged the domain, and the link is worth nothing.
  • Look at the page source for hidden links. Search for text and links that do not appear on the rendered page, because injected links are often hidden from visitors but visible to crawlers.

According to CleanTalk, in 2026, the Japanese keyword hack generates new pages full of auto-generated Japanese text under random directory names, monetized with affiliate links to stores selling counterfeit brand goods, and the site owner usually never sees those pages unless searching for them.

Find bad backlinks pointing to your site with the same site: search habit, because the same hacked pages that sell links also link out to other victims.

What Google does with hacked sites

Google's spam policies name the practice clearly. 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, and the policy lists the usual ways content ends up on a site without permission: code injection into existing pages, page injection of whole new spam pages, and content injection of hidden text and links.

A hacked site can draw two kinds of Google action. The first is a security warning: the site appears in Safe Browsing, browsers show a red interstitial, and traffic falls while nothing was deployed. The second is a manual action for hacked content, which can remove some or all of the site from search results until the owner cleans it and files a reconsideration request.

The link you buy from such a site inherits the problem. Check if Google ignored your backlinks after any purchase, because Google's systems work hard to ignore irrelevant and unnatural backlinks completely, and a link from a hacked domain is exactly the kind Google discounts first.

Do not pay for a second link on the same site, and do not ask the seller to move your link to a cleaner page on the same domain. The whole domain carries the problem, not one page, and a moved link is still a link from a hacked site.

Manual action for unnatural links to your site explains what happens if Google acts against your site because of links you bought, and the first step is always the same: check the Manual Actions report and the Security Issues report in Google Search Console. If your site has no action, leave the link alone and watch it, because a single ignored link is usually neutralized quietly rather than punished.

Audit your backlink profile after any purchase from a site you did not fully check, and treat a hacked seller as a reason to re-check every link you bought in the same campaign.

Frequently Asked Questions

Run a site: search for the domain and read the results. Japanese listings, pharmacy keywords, or loan ads under the domain mean SEO spam. Then click a result from Google and open the page on a phone, because cloaking and search-only redirects hide from direct visits.

Does a clean homepage mean the site is safe?

No. According to Malcare, in 2026, hacked sites use cloaking to show different content by visitor, referrer, device, location, or login state. A normal homepage proves nothing on its own, and the check has to compare more than one surface.

What is the Japanese keyword hack?

It is an attack that generates new pages full of auto-generated Japanese text under random directory names, according to CleanTalk, in 2026. The pages are monetized with affiliate links to stores selling counterfeit brand goods, and the owner usually never sees them unless searching for them.

It can, because Google lists hacked content as a spam-policy violation and may discount or act on links from hacked domains. A single ignored link is usually neutralized quietly, but a pattern of bought links from hacked sites can draw a manual action.

Only when Google's two conditions both hold: considerable spammy links pointing at your site and a manual action caused or likely. Disavow is not routine cleanup, and most sites never need it.

Expert verdict

Best for: buyers who run the five-minute check before paying, because a site: search and a search-click test catch most hacked sellers in minutes.

Not for: anyone buying links without seeing the domain first, because the signs of a hack are only visible from outside the seller's own pitch.

Pros: the checks are free and need no login, and a hacked site is easy to confirm once you know where to look.

Cons: a single symptom is not proof, and a careful seller can hide the signs, so the check reduces risk rather than removing it.

Bottom line

Search the domain, click through from Google, and check for warnings before you pay. A site that shows spam to crawlers but a clean page to you is hacked, and a link from it is worth nothing, whatever its metrics say.

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