SecurityAugust 5, 20266 min read

"This site may be hacked" warning in Google: what it means and how to remove it.

Google flagged your site as hacked. Your traffic just dropped to zero. Here is exactly what the warning means, why Google put it there, and the step-by-step process to get it removed from search results.

You open Google, search for your site, and see it: "This site may be hacked" in red text below your URL. Or worse, Chrome shows a red full-screen warning: "Deceptive site ahead." Your traffic drops to zero within hours.

This is Google's way of telling you they found something malicious on your site. It is not a suggestion. It is a flag that will stay there until you fix the problem and ask Google to re-check.

Here is what the warning means, why it appeared, and exactly how to get rid of it.

What triggers the warning

Google's Safe Browsing system scans billions of pages daily. It flags sites that show signs of:

  • Malware injection: malicious JavaScript or PHP code that infects visitors
  • Phishing pages: fake login forms that steal credentials
  • Spam injection: hidden links to gambling, pharma, or adult sites in your footer or database
  • Redirects: code that sends mobile visitors to malicious sites
  • Blacklisted domains: your site links to a domain Google already flagged

The warning can appear even if you cannot see the hack. Many hacks inject code that only loads for search engine bots or mobile users, not for you when you check the site from your desktop.

Step 1: Verify the warning in Search Console

Log into Google Search Console and go to Security Issues. If Google flagged your site, you will see a message here describing what they found: "Suspicious injections," "Harmful downloads," "Social engineering," etc.

If there is nothing in Security Issues but you still see the warning, check Manual Actions in Search Console. Sometimes Google issues a manual penalty instead of an automated flag.

Step 2: Clean the hack

This is the hard part. You need to actually remove the malicious code, not just hide it. Google will re-scan your site when you request a review, and if they find anything, the warning stays.

Follow my hacked site cleanup guide for the full step-by-step process. The short version:

  1. Put the site in maintenance mode
  2. Change all passwords (WordPress, database, hosting, FTP)
  3. Scan with Wordfence or Sucuri
  4. Remove malicious files and code
  5. Reinstall WordPress core, themes, and plugins from official sources
  6. Remove rogue admin users
  7. Check your database for spam links

The most common hiding spots for malicious code: functions.php in your theme, wp-config.php, .htaccess, files in /wp-content/uploads/ (PHP files should never be in uploads), and rogue entries in the wp_posts or wp_options database tables.

Step 3: Check for spam in the database

Google often flags sites where the database has been injected with spam links or posts. These are invisible on the frontend but Google's crawler sees them. Check your database:

  • Search wp_posts for posts you did not create (especially with pharmaceutical or gambling keywords)
  • Search wp_options for suspicious entries (sometimes hackers inject redirects into siteurl or home)
  • Search wp_users for admin accounts you did not create

Use phpMyAdmin or WP-CLI: wp db query "SELECT * FROM wp_posts WHERE post_content LIKE '%casino%' OR post_content LIKE '%viagra%';"

Step 4: Request a review from Google

Once you are confident the site is clean, go back to Search Console - Security Issues. There will be a button: "Request a review."

Google asks you to describe what you found and how you fixed it. Be specific:

Our site was compromised through an outdated plugin (Contact Form 7, version X.X). We removed the malicious files from /wp-content/uploads/, updated all plugins, changed all passwords, reinstalled WordPress core, and removed 2 rogue admin accounts. We also installed Wordfence and enabled the firewall. The site is now clean.

Do not write "fixed" and submit. Google wants to see that you understood the problem and addressed it. A vague request gets rejected.

Step 5: Wait (and monitor)

Google reviews flagged sites within 24-72 hours. You will get an email when the review is complete. If they confirm the site is clean, the warning is removed from search results within a few hours.

If Google says the site is still compromised, they will tell you which URL still has issues. Go back to Step 2 and clean that specific page.

How long does traffic take to recover?

The warning itself is removed within 24-72 hours of a successful review. But your traffic will not bounce back instantly. Google's crawlers need to re-index your pages, and users who saw the warning may avoid your site for weeks.

Typical recovery timeline:

  • Days 1-3: Warning removed, traffic starts trickling back
  • Week 1-2: Traffic at 30-50% of pre-hack levels
  • Week 3-4: Traffic at 70-90% of pre-hack levels
  • Month 2: Full recovery (if the underlying hack was cleaned properly)

If traffic does not recover after 2 months, you may have a persistent backdoor that re-infects the site. Run a full scan again.

How to prevent this from happening again

  • Keep everything updated. Use staged updates so updates do not break your site.
  • Install a WAF. Cloudflare (free) or Wordfence (premium) block automated attacks before they reach WordPress.
  • Delete unused plugins. Do not just deactivate them, delete the files. Every plugin is a potential entry point.
  • Use strong passwords and two-factor authentication on admin accounts.
  • Back up daily. If you get hacked again, you restore from a clean backup in minutes. See my backup strategy guide.

If your site has a "This site may be hacked" warning and you need help removing it, message @wpservicelab on Telegram. I can clean the hack, file the Google review request, and get your traffic back. See my bug fix service for pricing.

Have a site to recover?

Send the domain and a Wayback link. Honest scope and price before any work starts.

Get a quote