A hacked site loses rankings in three ways: spam pages or injected links get indexed under your domain, security warnings stop visitors clicking, and Google’s spam policies let it rank you lower or drop you. Recovery means cleaning the site, closing the entry point, fixing the index and requesting a review, which Google says can take several weeks.
Most owners think of a hacked website as a security problem. It is also a search problem, and often the one that costs the most. A hack can fill Google with pages you never wrote, send your visitors elsewhere, put a warning in front of the customers who do find you, and give Google a policy reason to rank you lower.
The hard part is that a hack is designed to stay hidden from the one person who would fix it. This guide covers what Google counts as a hack, how the damage appears in search, how to tell if it has happened to you, and the order in which to recover.
1. What Google counts as a hack
Google’s spam policies define hacked content as any content placed on a site without permission because of a vulnerability in its security. That definition is deliberately broad, and it matters because hacked content sits inside Google’s spam policy, the same family of rules that covers cloaking, hidden text and link schemes.
In practice, hacks arrive in a few recognizable forms. Attackers add new spam pages to your domain, often selling counterfeit goods, pharmaceuticals or gambling. They inject hidden text or links into pages you already have. Or they insert code that redirects visitors, sometimes only visitors arriving from Google, sometimes only on mobile. One well-known variant fills a site with thousands of shop-style pages in Japanese that rank for brand names; owners who never read Japanese may not notice for weeks.
Google also notes that hackers frequently use cloaking, showing crawlers different content from what a normal visitor sees, precisely to make the hack harder for the owner to spot.
2. How a hack damages rankings
The ranking damage comes from two directions. The first is relevance: when thousands of spam pages dilute your index, your site stops being clearly about what you do. The second is policy: Google states that sites violating its spam policies may rank lower in results or not appear at all. A hack puts you on the wrong side of that line without your knowledge or consent, and the policy does not care whose fault it was.
There is also a human cost that never shows in a ranking report. If a security warning appears in front of the people clicking your result, or a redirect sends them to a pharmacy site, the damage to trust outlasts the technical fix. Google says that malware, phishing and hacked-with-spam warnings remain in search results and browsers as a protection for users until a review clears them.
A large number of injected URLs also distorts how Google spends its time on your site. Our guide to whether crawl budget matters explains why a site with thousands of junk addresses can get its real pages crawled less often.
3. How to find out if you have been hacked
Start with the places the attacker cannot easily hide. Google’s Security issues report in Search Console shows its findings if its evaluation determines your site was hacked or behaves in a way that could harm visitors. If you have never opened it, open it now. Then check three more.
- Search your own domain. Search site:yourdomain.com followed by words like casino, cheap, pharmacy or a foreign-language term. Spam pages that rank under your domain show up here first.
- Read the Performance report. A sudden rise in impressions for queries that have nothing to do with your business is a classic signature of injected pages.
- Test as Google. Use URL Inspection in Search Console to see the page as Google fetches it. If the content differs from what you wrote, the site is cloaking.
Then look inside the site: unknown admin users, recently modified files you did not touch, and scheduled tasks you do not recognize.
4. The recovery sequence
The order matters more than the speed. The most common failure is cleaning the visible pages, requesting a review, and being re-hacked a fortnight later because the entry point was never closed. Google also warns that submitting a request before the problem is actually fixed can lengthen the turnaround on the next one.
If the cleanest answer is to rebuild on a fresh install, treat the rebuild as a migration and follow the URL mapping and redirect rules in our guide to website migration without losing rankings, so that you do not trade a hack for a self-inflicted traffic loss.
5. How long recovery takes, and what we do not know
Google tells us one number: reviews for sites hacked with spam can take up to several weeks, because they may involve manual investigation or complete reprocessing of the hacked pages. That is the length of the review, not the length of the recovery.
Beyond that, we are not aware of a credible published timeline for rankings returning after a hack, and anyone quoting you an exact number is guessing. In our experience, recovery depends on how long the spam was live, how many injected URLs were indexed, whether links were lost, and how quickly the review passed. A site cleaned within days of infection usually has far less to recover than one that ran spam for months.
A cheap “malware scan and clean” that removes visible files is not a recovery. If nobody has identified how the attacker got in, you have paid to be hacked again. Ask any provider, including us, what the entry point was and how it was closed.
6. Prevention is boring and effective
Most small business hacks use ordinary weaknesses: an outdated plugin, an abandoned theme, a reused password, or an admin account that nobody remembers creating. The prevention list is short. Keep the CMS, themes and plugins updated and delete the ones you do not use. Use unique passwords with two-factor authentication on every admin account. Keep backups stored away from the site itself. Give each user only the access they need. And monitor, because a hack found in a week costs far less than one found in a quarter.
If your site has already been compromised or you want it watched, our malware removal and website security service can help you assess cleanup and monitoring needs. Contact us for current scope and pricing. Whoever you use, insist on the entry point being identified and closed.
Find out how they got in before you pay to clean up
A cleanup that does not identify the entry point is temporary. We scan, clean and close the way in, then watch Search Console through the review.
Get your site checkedFrequently asked questions
Can a hacked website lose its Google rankings?
Yes. Google’s spam policies cover hacked content, and sites that violate its spam policies may rank lower or not appear at all. Spam pages indexed under your domain also dilute what the site is about, and security warnings reduce clicks even when you still rank.
How do I know if my website has been hacked?
Open the Security issues report in Search Console, search site:yourdomain.com with spam words such as casino or pharmacy, check the Performance report for unrelated queries, and use URL Inspection to compare what Google sees with what you see. Also look for unknown admin users and recently modified files.
How long does Google take to review a hacked site?
Google says reviews for sites hacked with spam can take up to several weeks, because they can involve manual investigation or complete reprocessing of the hacked pages. Submitting a request before the problem is truly fixed can lengthen the turnaround.
Why did the hack come back after I cleaned my site?
Usually because the entry point was never closed or a backdoor file was left behind. Cleaning visible pages without finding the outdated plugin, stolen password or compromised hosting account that let the attacker in guarantees a repeat.
What is cloaking and why does it matter on a hacked site?
Cloaking means showing search engines different content from what visitors see. Google notes that hackers often use it to make a hack harder for the owner to detect, so your own browser may show a normal page while Google indexes spam.
Will my rankings fully recover after a hack?
Often they do, but we are not aware of a published recovery timeline and would not trust an exact promise. Recovery depends on how long the spam was live, how many injected URLs were indexed, whether links were lost, and how quickly the review passes.
Sources
- Google Search Central: “Spam policies for Google web search.” Definition of hacked content, the note that hackers use cloaking to hide a hack, and the statement that violating sites may rank lower or not appear in results.
- Google Search Console Help: “Security issues report.” What the report shows, and the warning that submitting a request when the issue is not fixed can lengthen turnaround.
- Google, web.dev: “Request a review.” Review process, reviews for sites hacked with spam taking up to several weeks, and warnings remaining in results and browsers until a review clears them.
- Digital Age website malware removal and security service: contact the team for current scope and pricing.
Note: the typology of damage, the recovery order and the 90 day monitoring window come from our cleanup work and Google’s general documentation, not from a single published study. We have not quoted a statistic on how many hacked sites recover because we are not aware of a credible one.
Reference: Read the original research or documentation.

Muhammad Asjad Khan is a seasoned digital marketer and the Chief Operating Officer at Digital Age, where he leads strategy, innovation, and client success. With years of experience in SEO, content marketing, and performance-driven digital campaigns, Asjad is passionate about helping brands grow their online presence and achieve measurable results. When he’s not optimizing websites or scaling marketing strategies, he’s exploring the latest trends in tech and digital media