French flag Hosted and supported in France A human reply within 12 hours 06 65 13 24 36
← All articles WordPress & security7 min read

Google shows “This site may be hacked”: what now?

Deal with Google's hacked-site warning using Search Console, clean every affected URL, then request a fresh review.

Deal with Google's hacking warning using Search Console, clean every URL affected, then ask for a new review. The priority is to restore a situation under control without wiping the traces useful to the diagnosis.

Illustrated diagnosis: Google This site may be hacked
Diagnosing Google's “This site may be hacked” warning: symptoms, causes, fixes and checks.

How do I recognise Google's “This site may be hacked” warning?

An infection is not resolved by deleting the visible file alone. You have to contain the incident, identify the point of entry, clean out every persistence mechanism, renew the secrets and then watch for files or accounts reappearing. Start by noting when it appeared, the most recent changes, the URLs concerned and the behaviour observed.

Test the site from a browser with no session, on mobile, and by arriving from a Google result: many infections only fire for certain visitors, or for crawlers. Note the suspicious URLs, the redirects you see and the Search Console warnings.

01 · Signal to check

A warning under the Google result

02 · Signal to check

A security issue in Search Console

03 · Signal to check

Unknown pages or snippets indexed

One signal alone does not prove the cause: “A warning under the Google result” can come from “Injected content or malicious redirects” just as easily as from “Back-door files still active”. Look for at least two findings that agree before you apply a lasting fix.

What signifie exactement l’avertissement de Google

The note “This site may be hacked” appears under the result when Google detects signs of compromise, usually spam pages or links added without your knowledge. It is different from Safe Browsing's red screen, which warns of malware or phishing.

The detail is in Search Console, under Security Issues, with sample URLs. Those are samples: the clean-up has to cover the whole site, including the directories and subdomains everyone forgets.

Getting the warning lifted after the clean-up

Once the site is clean, the ways in are closed, and the spam pages return 404 or 410, request a review from the Security Issues report. Describe precisely what you found and fixed: the review is not instant and usually takes several days.

Meanwhile, strip the spam URLs out of the sitemap, check robots.txt is not blocking the crawl of your legitimate pages, and watch for new suspicious URLs with a site:yourdomain.com search. A reinfection during the review means a refusal.

Causes to check

For Google's “This site may be hacked” warning, the 4 causes below are ranked from the commonest to the rarest. Test the one matching the site’s most recent change first, one at a time.

01 · Possible cause

Injected content or malicious redirects

02 · Possible cause

Back-door files still active

03 · Possible cause

A vulnerable CMS or plugin

04 · Possible cause

An incomplete clean-up after an earlier infection

Search Console's Security Issues report, the server access logs, the user list, the recently changed files and the scheduled tasks all give precise dates. Keep that trail: it is how you find the way in.

A good fix does not merely make the symptom disappear. It explains why the problem appeared and how to check that it does not come back.
An animated process to understand Google This site may be hacked
The subject in motion: observe the facts, apply an action in proportion, then check the result.

Precautions before starting

Take a full copy of the files and the database, then keep it aside as evidence: it must not serve as a restore point until the infection is understood.

Then change the administrator, FTP, database and hosting passwords, and rotate WordPress's security keys, to close the doors the attacker could use again.

Free Host by French tool

Check what a reported page really does

Enter a sample URL from the Search Console report: we fetch its HTTP status and its real redirects from our servers.

The check queries this address directly from our servers. No data is kept.

Need help cleaning up and passing Google's review?

Ask for support
ORDER OF WORK

Diagnosis and fix

PhaseObjectiveA mistake to avoid
ObserveReproduce it and gather the evidenceChanging several settings before you have a baseline
IsolateConfirm the component or the rule responsibleDeleting files without keeping a copy
FixApply the smallest documented changeRestoring a version that still contains the same cause
ValidateTest the whole journey and monitor itConcluding from the home page loading alone

How do I resolve the problem?

The 4 steps below tackle Google's “This site may be hacked” warning from the least intrusive to the heaviest. After each change, repeat the same test; if nothing changes, go back to the previous state before moving on to the next step.

  1. 01

    Step 1

    Open the Security Issues report and export the examples.

  2. 02

    Step 2

    Put the site out of the attacker's reach without blocking the analysis you need.

  3. 03

    Step 3

    Clean the files, the database, the accounts and the scheduled tasks, then close the hole.

  4. 04

    Step 4

    Test the URLs reported and request the review in Search Console.

check every example Google gives, and similar URLs.

Validate the resolution

After the clean-up, scan the files and the database again, review the administrator list, and test the redirects from several devices and from Google. Where Search Console reported a problem, request the review only once those checks are done.

Validation checks

Schedule a second integrity check a few days later: a back door you missed can reinfect the site after a clean-up that looked successful.

Prevent a recurrence

Prevention has to answer the cause you identified. For Google's “This site may be hacked” warning, the first measure is “Keep an eye on Search Console”; note too the signal that would have shown the incident sooner, and who is responsible for watching for it.

01 · Preventive measure

Keep an eye on Search Console

02 · Preventive measure

Keep the CMS up to date

03 · Preventive measure

Rotate the secrets after an incident

04 · Preventive measure

Log the changes

Delete the plugins you do not use, keep administrator accounts few, turn on two-factor authentication and monitor file changes. Security rests on those layers together, not on a single plugin.

A practical diagram about Google This site may be hacked
A marker specific to this article: three steps to turn reading into a decision you can verify.
FREQUENTLY ASKED QUESTIONS

Frequently asked questions about Google's “This site may be hacked” warning

How long does the warning stay up?

It stays until Google has seen that the problem is fixed. After the clean-up, a review request from the Security Issues report speeds the check up, and it usually takes several days.

Can I request the review before finding the hole?

It is not advisable. If the site is reinfected during or after the review, the request is rejected and the warning comes back. Close the way in first: a vulnerable plugin, a compromised account or a malicious file.

Do you need to remove the spam pages from the index by hand?

Removing the code that generates them and letting the URLs return 404 or 410 is enough for them to drop out as crawling continues. The URL removal tool can hide the most visible ones for a while.

How do you check the fix will hold?

Check every example Google gives, and similar URLs. Check no files have reappeared. Wait for the report to clear before calling the incident closed. Then watch the logs, the alerts and the relevant metrics for several days.

ON TO YOUR OWN CASE

How to resolve it

If Google's “This site may be hacked” warning persists after these steps, we can pick the diagnosis up again from your logs and your access details, without acting blind on the site.

Get a diagnosis

Summary with an AI

Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

ChatGPTSummarise the article PerplexitySummarise the article ClaudeSummarise the article CopilotSummarise the article MistralSummarise the article GeminiSummarise the article
THEY TRUSTED US

Client references

See all case studies
Montreuil-sur-Mer logo Data Labcenter logo Sofradom logo 70 Football logo Afrique sur 7 logo CyberJay logo Élisa Reddet logo Foire du Trône logo Goodyvest logo Kincy logo Lhotellier logo Audrey Mégelé du Bourg logo MYF logo
Sine Qua Non logo Make It Happen logo Sonance Audition logo ACME logo Beluvia Bar Store logo Desaltera logo Fête des Loges logo GD Menuiseries logo 3G Immo logo Lavish logo Maison du Feu logo Mieux Fiscal logo MYF Tea logo
Go deeper

Useful articles

See all articles
Illustrated diagnosis: WordPress infected after installing a plugin
WordPress security7 min read

WordPress infected after a plugin: what now?

Contain an infection that appeared after a plugin, check where it came from, clear out the persistence mechanisms and reinstall only from a source you trust.

Illustrated diagnosis: WooCommerce payment has stopped working
WooCommerce troubleshooting7 min read

WooCommerce payment broken: the solutions

Diagnose a stuck WooCommerce payment by checking the checkout, the gateway, the keys, HTTPS, the webhooks, the cache, the logs and the orders.

What they say about working with us

Google reviews about the support we provide for the Google this site may be hacked. page

Google logo 4,8/5 243 verifiable Google reviews Read the reviews
★★★★★
“A WordPress pro. His skills, his grasp of what we needed and his clear explanations made the whole project run smoothly.”
Nicolas Le Couteur Review published on Google
★★★★★
“Always available to answer questions, very professional. Every technical problem we ran into was resolved.”
Cuong Doan Review published on Google
★★★★★
“A professional who listens to his clients. Thank you for the commitment and the time spent on our project.”
Sakina Sedkaoui Review published on Google
★★★★★
“Someone you can trust, who understood my needs straight away and put an effective strategy in place.”
Vincent Loustalot Review published on Google
★★★★★
“Very attentive, motivated and able to propose tailored SEO strategies. The quality of the work is remarkable.”
Marine Mongodin Review published on Google
★★★★★
“Quality work, delivered on time. Maxime is responsive, suggests relevant adjustments and delivers careful work.”
Olivier Opron Review published on Google
★★★★★
“Spot on, perfect work, nothing to fault!”
Robin Gomez Review published on Google
★★★★★
“Maxime adapts very quickly, even to the trickiest technical situations. The result is always there.”
Philippe Bertieaux Review published on Google
★★★★★
“Impeccable work from start to finish, highly responsive and flawless quality.”
Alex Houillon Review published on Google
★★★★★
“The site is fast and visually very good. Maxime also helped us build our SEO strategy.”
Lois Guillermond Review published on Google
★★★★★
“An exceptional developer.”
Honoré Comlan Koumondli Review published on Google
★★★★★
“Maxime showed great professionalism and great creativity in helping us build our charity’s website.”
Julien-Benoit Birman Review published on Google
★★★★★
“A solid understanding of search optimisation when building a WordPress site.”
JM Review published on Google
★★★★★
“Maxime is responsive, a good teacher, and anticipates what is needed to get the strategy right.”
Romain Bergé Review published on Google
Your site deserves better

Let’s talk about your hosting

Tell us about your project. You get a clear recommendation, no jargon and no commitment.

Get my recommendation Reply within 12 hours • Migration handled • Free quote Active infrastructure
Google logo 243 Google reviewsVerifiable public reviews
Find my plan