Google flagged my website for malware: what to do

A red warning screen, a “this site may be hacked” label in search, or an email from Search Console can stop a small business cold. Here’s how to confirm what’s wrong, clean it up and get back to normal.

The short answer: confirm the problem in Google Search Console, change every password, remove the malware (or replace the site with a clean one), delete any spam pages the hackers created, then request a review in Search Console. Malware reviews usually take a few days. Also check whether your business email has been blocklisted.

What the warnings mean

Google runs a system called Safe Browsing that checks sites for malware, phishing and hacked content. When it finds a problem, visitors may see a full red screen in Chrome that says “Deceptive site ahead” or “The site ahead contains malware.” Search results can show “This site may be hacked” or “This site may harm your computer,” and some pages may drop out of search entirely.

Most people never click past a red warning, so traffic and calls fall off almost overnight. That’s why speed matters.

1. Confirm what Google sees

  • Search Console: open the Security issues report. It lists the type of problem and often example URLs.
  • Google’s site status tool: search “Google Safe Browsing site status” and enter your domain to see whether it’s flagged.
  • Search your own site: type site:yourdomain.com into Google. Pages you never created, often spam in another language or for pills, loans or gambling, are a sign of a hack.

No Search Console account? Set one up now. You need it to request a review later.

2. Lock down access first

Before cleaning anything, change the passwords for your hosting account, website admin, FTP, domain registrar and email. Turn on two-factor login wherever it’s offered, and remove any admin users you don’t recognize. Cleaning a site while the attacker still has a way in just means doing it twice.

3. Remove the malware, or start clean

Hacks usually come in through outdated website software, old plugins or themes, or stolen passwords. Cleaning one means finding every infected file and injected bit of code, not just the obvious ones. Restoring a backup only works if you have one from before the hack, and the hole that let them in still has to be closed.

If the site is old, heavily infected or built on software that hasn’t been updated in years, replacing it with a clean new site is often faster and safer than patching it. A simple custom site with fewer moving parts also gives attackers less to break into.

4. Clean up what Google indexed

Hackers often create hundreds of spam pages. Once they’re deleted from your server, make sure those URLs return a “not found” error, and use the Removals tool in Search Console to hide the worst ones from search faster. Submit a fresh sitemap so Google re-crawls your real pages.

5. Request a review from Google

When the site is clean, go back to the Security issues report, confirm you’ve fixed the problems and click Request review. Explain briefly what you found and what you did. According to Google, reviews for malware usually take a few days, and hacked-spam reviews can take longer. If the review fails, Google tells you, and you’ll need to look again for what was missed.

6. Check your business email

This is the step people miss. A hacked site can send spam from your domain or server, which gets you added to email blocklists. Then customers stop getting your quotes and invoices, and you may not notice for weeks.

  • Check your domain and mail server on a blocklist lookup tool.
  • Make sure your domain has correct SPF, DKIM and DMARC records, which tell email providers your messages are legitimate.
  • Request removal from any blocklists once the spam has stopped.

A real example

We recently helped a Phoenix-area demolition contractor whose old website had been hacked and loaded with malware. Google shut the site down in search, and the problems spread to their email, so the business was effectively offline. We removed the infected site, launched a clean new one, worked through Google’s security review to get the blocks lifted, and fixed the email so the business could operate normally again.

How to keep it from happening again

  • Keep website software, plugins and themes updated, or use a site that doesn’t depend on them.
  • Use unique passwords and two-factor login for hosting, domain and website admin.
  • Keep regular backups stored somewhere other than the website itself.
  • Keep Search Console set up so Google can warn you by email the moment something looks wrong.

Need help now? See our hacked website repair service, or book a consultation. If it’s time for a new site, a custom website is $1,500. See pricing.

Have a project in mind?

Book a consultation call and tell us about your business. We'll follow up with a proposal.

Book a Consultation