Someone looks for your site on Google, clicks, and instead of your page sees a red screen saying it is dangerous. Few surprises are worse for a site owner, and it can almost always be fixed.
This guide explains what each warning means, how to find the cause, how to clean the site and how to ask Google to lift the warning.
What does "Deceptive site ahead" mean?
Before opening a page, browsers check lists of dangerous sites. The best known is Google Safe Browsing, used by Chrome, Firefox and Safari. If your domain is on it, the browser shows the warning before loading your page.
It doesn't mean you did something wrong. Usually somebody got into your site and added fake pages, downloads or code that tries to trick your visitors.
The wording changes over time. Google's Chrome help now describes a red page that says "Dangerous site", while many people still know it as "Deceptive site ahead". The steps below are the same for both.
The most common warnings
| What the browser says | What is usually behind it |
|---|---|
| Deceptive or dangerous site | Pages that imitate a bank, a mailbox or another brand to steal data (phishing). |
| The site contains malware | Code that tries to install something on the visitor's computer. |
| The site contains harmful programs | Downloads that change browser settings or install unwanted extras. |
| Suspicious site | Google sees signs of risk, even if it can't say exactly which. |
| Did you mean another site? | Your domain looks a lot like a well-known one. |
| The connection is not secure or not private | Not a hack: the SSL certificate is missing, expired or badly installed. |
| Insecure content blocked | The page uses HTTPS but loads images or scripts over HTTP. |
The last two need no cleaning at all. If that is your case, go straight to step 5.
Step 1: confirm the problem
- Open Google Search Console and go to Security & Manual Actions → Security issues. If your site isn't there yet, add it now: it's free.
- See which kind of problem it reports (hacked content, deceptive pages, harmful downloads) and the example addresses.
- Check your domain in Google's transparency report too.
Keep those example addresses: you will use them to check that the cleanup worked.
Step 2: take a copy before you touch anything
Download the files and the database as they are, infected or not. If you delete something by mistake you can get it back. Keep this copy away from your good ones.
If you have a backup from before the attack, restoring it is the fastest way out, provided you then close the hole they used. You will lose whatever was published since. Here is how to organize your backups.
Step 3: clean the site
On WordPress, this order works best:
- Reinstall WordPress from Dashboard → Updates, or replace the
wp-adminandwp-includesfolders with clean ones. - Reinstall plugins and themes from their official source and delete the ones you don't use. Never keep "nulled" versions.
- Look for strange files, above all PHP files inside
wp-content/uploads, where there should be none. - Review the administrators and remove any you don't recognize.
- Review the database: odd links in posts, scripts in widgets and scheduled tasks that aren't yours.
- Read
wp-config.phpand.htaccessline by line.
A scanner such as Wordfence or Sucuri helps find what you miss. For the whole process, follow our guide to cleaning a hacked WordPress site.
Step 4: close the door
If you don't fix the cause it will happen again, and Google is stricter with sites that relapse.
- Update WordPress, the plugins and the theme.
- Change every password: administrators, database, FTP or SSH, and the hosting panel.
- Generate new keys in
wp-config.phpto end all open sessions. - Turn on two-factor sign-in for administrator accounts.
Step 5: check HTTPS and mixed content
Open your site with https:// and see whether the browser complains. If it does:
- Make sure the certificate hasn't expired and covers your domain with and without
www. - Send all HTTP traffic to HTTPS with a permanent (301) redirect.
- Switch any images and scripts still loading over HTTP to HTTPS.
If your hosting doesn't include a certificate, these free SSL plugins help you install one.
Step 6: ask Google for a review
Before you send it, confirm that the site is online and that you aren't blocking Googlebot with noindex, robots.txt or a password. Then press Request review in the Security issues report and explain three things: what you found, what you did and what you changed so it won't happen again. For example:
We found 14 fake pages under /shop-promo/, created through an outdated plugin. We deleted them, reinstalled WordPress and the plugins, removed an unknown administrator and changed every password. Updates are now automatic.
How long does it take?
According to Search Console help, a review takes from a few days to a few weeks. Once it is approved, the warning can take a little longer to disappear from every browser.
What if it is rejected?
Go back to the report and look for new example addresses. Clean them, find what is generating them, and only then ask again. Sending the same request without changes makes the next one slower.
Do I have to do this for Firefox and Safari too?
No. Both use Google's list, so the warning goes away everywhere once Google lifts yours. Antivirus programs and some mail lists are separate: if one still flags you, ask for removal on its own page.
How to keep it from happening again
- Always update. Outdated plugins are one of the most common ways in.
- Use fewer plugins. Each one is code that somebody has to maintain.
- Give the minimum access. People who only write don't need to be administrators.
- Back up daily, away from the server, and test a restore.
- Visit Search Console every so often, even though it also emails you.
There is more in how to improve WordPress security and in the official WordPress guide.
If you'd rather we did it
Hacked site repair is part of Phluit Care Pro: we remove the malware and the backdoors, clean the database, ask for your domain to come off blocklists, harden the site and send you a report. If it is hacked again while you are on the plan, we fix it again.