Home / Insights

,

Hacked Website SEO: How to Recover from Google Warnings

·

By Bright Harbour Media

Featured image: Hacked Website SEO — How to Recover from Google Warnings, with a browser window, warning sign and shield icon

A hacked website, in Google’s words, contains “content placed on a site without permission, due to vulnerabilities in a site’s security.” Recovering your SEO means removing that content, closing the security hole that let it in and asking Google to review the site through Search Console, which is what removes the warnings and lets affected pages return to search.

Key takeaways

  • Google’s Security issues report groups problems into hacked content, malware and unwanted software, and social engineering. Fixing only some pages “will not earn you a partial return to search results.”
  • Google publishes review times: phishing about a day, malware a few days, sites hacked with spam up to several weeks. Once a site is clean, warnings are removed within 72 hours.
  • Sucuri found SEO spam on 422,741 websites in 2024, which was 38.4% of the 1,176,701 infected sites its SiteCheck scanner detected across 70.8 million scans.
  • Patchstack counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025, up 42% on 2024. 91% were in plugins and only 6 were in WordPress core.
  • Sites that repeatedly switch between clean and harmful can be labelled Repeat Offenders and cannot request a review for 30 days.

How do you know if your website has been hacked?

Often you don’t, at least not straight away. Google’s hacked-sites guide on web.dev notes that “hacks are often invisible to users,” and the Search Console help page explains that “many hackers make changes that are visible only to Google machines”, such as spam links that only appear when Googlebot requests the page. That is why a hacked site is frequently discovered through search rather than by looking at the home page.

Google also warns that you may not see a warning yourself, because Safe Browsing shows warnings based on browsing context. Its advice is to “rely on the Security Issues report as the source of truth.” These are the signs worth checking:

Warning signWhere to checkWhat it suggests
“This site may be hacked” under your resultGoogle Search resultsGoogle found spam injected by a hacker
“This site may harm your computer” or a red browser warningSearch results, Chrome and other browsersMalware or unwanted software was detected
An issue listed in the Security issues reportSearch Console → Security & Manual ActionsGoogle has flagged hacked content, malware or social engineering
Pages you never created, often in Japanese or full of keywordssite:yourdomain.com searches, the Page indexing report and the Performance reportURL (page) injection, such as the Japanese keyword or gibberish hack
Unusual traffic spikes from unrelated search termsSearch Console Performance reportSpam pages are ranking for queries unrelated to your business
Owners, users or admin accounts you don’t recogniseSearch Console Users and permissions; your CMS user listAn attacker has gained access and may be trying to get spam indexed
Sources: Google Search Console Help, “Security issues report”; Google’s hacked-sites guide on web.dev (overview, FAQ and “Use Search Console”).

A quick test from Google’s help page is to search your own site for common spam words, for example site:example.com pharmacy, and to inspect suspicious URLs with the URL Inspection tool, which shows the page as Google sees it.

What kinds of hacks affect SEO?

Google’s spam policies describe four types of hacked content, and the Search Console report uses slightly different names for some of them. The report also covers malware and social engineering, which trigger browser warnings rather than search spam.

TypeWhat the attacker doesTypical SEO effect
Code injectionAdds code that, for example, redirects visitors to a malicious site or runs cryptocurrency mining softwareWarning labels; visitors bounced to other sites
Content injectionAdds spammy links or text, often hidden from visitors (Google cites pharmaceutical terms as an example)Your pages rank for, or link to, spam topics
URL injection (called “page injection” in the spam policies)Creates new pages, often containing spammy words or linksThousands of junk URLs indexed under your domain
RedirectsSends users who click from Google to a suspicious page, while direct visits look normalTraffic from search lost to the attacker’s site
Malware and unwanted softwareInstalls software that harms visitors’ devices“Dangerous” warnings in the browser and in search
Social engineeringDeceptive pages, such as phishing forms that trick users into revealing informationInterstitial warnings that stop most visitors
Sources: Google Search Central, “Spam policies for Google web search” (hacked content section, last updated Aug 28, 2026); Search Console Help, “Security issues report”.

Three spam hacks are common enough that Google wrote separate clean-up guides for them:

Japanese keyword hack

Creates new pages with autogenerated Japanese text in randomly named directories, usually monetised with affiliate links to stores selling fake branded goods. Google notes the hacker “will typically add themselves as a property owner in Search Console.”

Gibberish hack

Creates many pages of nonsensical, keyword-filled sentences designed to rank for those terms. Visitors who click are often redirected to an unrelated page.

Cloaked keywords hack

Adds spam pages that may reuse your site’s template so they look like they belong. The attacker sells links on them. Visiting the URL yourself may show a 404, but Google’s advice is “Don’t be fooled!”

Bar chart of SEO spam detected on hacked websites in 2024 by Sucuri SiteCheck: all SEO spam 422,741 (38.4% of infections); Japanese SEO spam 117,393; hidden content spam 114,318; gambling-related spam 79,817. Based on 70.8 million scans and 1,176,701 infected websites. Categories overlap.
SEO spam is one of the most common results of a hack. Sucuri’s categories overlap, so the bars do not add up to the total. Source: Sucuri, SiteCheck Malware Trends Report 2024.

Sucuri’s figures come from remote scans of public pages, so they show what its scanner could detect, not every hack that happened. Even so, they give a sense of scale: in its 2024 data, malware and malicious redirects together accounted for 74.7% of infections, and SEO spam for 38.4%.

Is it a security issue or a manual action?

Both appear under “Security & Manual Actions” in Search Console, but they work differently. Google describes manual actions as “mostly attempts to manipulate our search index”, while security issues are problems that put users at risk.

Security issueManual action
Why it happensYour site was hacked or is harming visitorsA human reviewer found a spam policy violation
What users seeA warning label in search results or an interstitial warning in the browserUsually nothing: pages are ranked lower or omitted without any visual indication
Hack-related exampleHacked: Content injection, Hacked: URL injection, Hacked: Malware“Site abused with third-party spam”, which affects only the pages with spammy content
How to fixClean every affected page, then select Request ReviewFix every affected page, then request reconsideration
Review timeFrom a few days to a few weeksSeveral days or weeks
Sources: Search Console Help, “Security issues report” and “Manual actions report”.

If you have a manual action rather than a security issue, our guide to Google manual actions walks through the reconsideration process.

How do you recover a hacked website? A seven-step process

Google’s hacked-sites guide sets out the recovery in stages. Here is the same process, condensed for a small or medium business site:

Diagram of a six-step hacked site recovery path: 1 quarantine, 2 check Search Console, 3 assess damage, 4 find the hole, 5 clean and harden, 6 request a review. Google’s published review times: phishing about a day, malware a few days, spam hacks up to several weeks; warnings removed within 72 hours once clean.
The recovery path and Google’s published review times. Framework: Bright Harbour Media, based on Google’s hacked-sites guide on web.dev.
  1. Quarantine the site. Ask your host to take it offline, for example by serving a 503 from a different server, so visitors are protected while you work. A robots.txt disallow is not enough because it “only blocks search engine crawlers.” Change every password: CMS, hosting, FTP and database. Google says it is unlikely that taking a site offline temporarily during recovery “will affect future ranking.”
  2. Check Search Console. Read the Security issues report and the Manual actions report. In Users and permissions, remove any owners or users you don’t recognise. Also check the Removals and Change of Address tools for requests you didn’t make.
  3. Assess the damage. Run site: searches for spam words, inspect sample URLs with the URL Inspection tool, and search your files for suspicious functions Google mentions, such as eval, base64_decode and unescape.
  4. Find how the attacker got in. Google lists the usual routes: compromised passwords, missed security updates, insecure themes and plugins (“a major source of vulnerabilities”), social engineering, gaps in security policies and data leaks.
  5. Clean and harden. Google recommends “a clean installation, not just an upgrade,” because upgrades can leave infected files behind. Return a 404 for pages the hacker created; use the Removals tool only for those pages and never for “previously good pages.” Turn on two-factor authentication and keep core, plugins and themes updated.
  6. Request a review. In the Security issues report, select Request Review and describe the problem, the steps you took and the result. Make sure cleaned pages are not “roboted out or blocked from indexing,” and don’t request a review before everything is fixed.
  7. Monitor the recovery. Watch the Security issues report for the review result, then use the Performance report to compare traffic before and after the hack, as described in our guide to diagnosing a Google traffic drop.

How long does it take to recover from a hack?

The review itself is quick for some issue types and slower for spam. Google’s web.dev guide gives these processing times:

SituationWhat Google says
Phishing reviewAbout a day (phishing reviews can also be requested through Safe Browsing’s report page)
Malware reviewA few days
Spam hack reviewUp to several weeks, because spam reviews can involve manual investigation
After a successful reviewWarnings in browsers and search results are removed within 72 hours
Search Console Help (all security issue types)A review can take from a few days to a few weeks
Repeat Offender statusLasts 30 days, during which reviews cannot be requested
Sources: Google’s hacked-sites guide on web.dev, “Request a review”; Search Console Help, “Security issues report”; Google Search Central, “Safe Browsing Repeat Offenders policy” (last updated Dec 10, 2025).

Rankings are a separate question. Google doesn’t promise that traffic returns to its previous level on a fixed date. Spam URLs still need to drop out of the index, and pages that served spam to Googlebot need to be recrawled. Requesting a review while the problem remains “will only prolong the period of time that your site is flagged as dangerous,” so it pays to be thorough the first time.

Why do WordPress sites get hacked so often?

Most of the risk on a WordPress site sits in third-party add-ons rather than in WordPress itself. Patchstack’s annual reports show how quickly that risk is growing:

Measure2024 (Patchstack 2025 report)2025 (Patchstack 2026 report)
New vulnerabilities in the WordPress ecosystem7,96611,334 (up 42%)
Share found in plugins96%91%
Share found in themes4%9%
Vulnerabilities in WordPress core76
Not fixed in time for public disclosure33%46%
Sources: Patchstack, “State of WordPress Security in 2025” (updated Mar 14, 2025) and “State of WordPress Security in 2026” (updated Feb 25, 2026).

Patchstack also reports that, weighted by how heavily they were attacked, the median time to first exploit for vulnerabilities in 2025 was 5 hours. In practice that means updates and a short list of well-maintained plugins matter more than any one security product. A regular SEO audit is a good moment to review users, plugins and unexpected URLs alongside the usual technical checks.

Frequently asked questions

Will a hack hurt my Google rankings permanently?

Google doesn’t promise a timeline for rankings, but it says taking a site offline temporarily during recovery is unlikely to affect future ranking. Most of the damage comes from spam pages and warnings staying live, so clean every affected page and request a review once.

How long until the “This site may be hacked” warning disappears?

You need a successful review first. Google says spam reviews can take up to several weeks, malware reviews a few days and phishing reviews about a day. Once Google finds the site clean, warnings are removed within 72 hours.

Can I block Google with robots.txt while I fix the site?

Blocking crawlers doesn’t protect visitors, which is why Google says a robots.txt disallow is insufficient for quarantine. When you request a review, cleaned pages must not be blocked from crawling or indexing, or Google can’t confirm the fix.

Should I use the Removals tool to delete spam URLs?

Only for pages the hacker created, and only after they return a 404. Google warns not to use the tool for previously good pages, because a removal hides them from search too.

Sources

  1. Security issues report — Google Search Console Help: issue types, warnings, review requests and timing, “source of truth” advice
  2. Help, my site has been hacked (hacked-sites guide) — Google, web.dev: recovery steps, quarantine, clean-up, review processing times and FAQ
  3. Request a review — Google, web.dev: phishing, malware and spam review times; warnings removed within 72 hours
  4. Top ways websites get hacked by spammers — Google, web.dev: common vulnerabilities
  5. Fix the Japanese keyword hack — Google, web.dev: also the gibberish and cloaked keywords hack guides
  6. Spam policies for Google web search — Google Search Central, last updated Aug 28, 2026: hacked content definition and types
  7. Manual actions report — Google Search Console Help: “Site abused with third-party spam” and manual actions vs security issues
  8. Safe Browsing Repeat Offenders policy — Google Search Central, last updated Dec 10, 2025: 30-day status
  9. SiteCheck Malware Trends Report 2024 — Sucuri: 70.8 million scans, 1,176,701 infected sites, SEO spam figures
  10. State of WordPress Security in 2026 — Patchstack, updated Feb 25, 2026: 2025 vulnerability data
  11. State of WordPress Security in 2025 — Patchstack, updated Mar 14, 2025: 2024 vulnerability data

Cite this article: Bright Harbour Media. “Hacked Website SEO: How to Recover from Google Warnings.” Bright Harbour Media Insights, October 2026. https://brightharbourmedia.com/hacked-website-seo/

You are welcome to reference the charts and frameworks in this article with a link back to this page.

Not sure whether your site is clean, or still losing traffic after a hack? Our SEO audit service checks indexing, spam URLs and Search Console reports in one review. Get in touch to book one.

Want a second pair of eyes on your SEO?

Request an audit and we will show you the biggest opportunities for your site.