You searched for your own business and saw “This site may be hacked” under your link. It’s alarming, but it’s fixable, and the steps are the same for almost every WordPress site.
What the warning means
Google shows this label when it believes a hacker has changed pages on your site or added new ones, almost always to show spam. Common examples are thousands of pages selling fake designer goods or pills, Japanese spam pages, or visitors from Google being redirected to spam sites.
The spam is often hidden from you. Many hacks only show it to Google, or only to visitors who arrive from a search, so your site can look perfectly normal when you type its address.
Step 1: Open Search Console
Google Search Console is Google’s free dashboard for site owners, and it is the only place you can ask Google to remove the label.
- Go to search.google.com/search-console and sign in. If your site isn’t there yet, add it and verify it. The DNS method works for the whole domain.
- Open Security & Manual Actions → Security issues. Google lists the problem type (for example “Hacked: content injection” or “Hacked: URL injection”) and some sample URLs.
- Open Settings → Users and permissions. If you see an owner you don’t recognise, an attacker may have added themselves. Remove them, and remove their verification file or DNS record so they can’t get back in.
Step 2: Find the hacked pages
- Search Google for
site:yourdomain.comand look through several pages of results for titles you didn’t write, foreign-language text or odd URLs. - Check the sample URLs from the Security issues report with URL inspection → Test live URL → View tested page. This shows what Google sees, which may be different from what you see.
- Check the Pages report (Indexing → Pages) for a sudden jump in indexed pages. Thousands of new pages you didn’t create is a strong sign of spam.
- Check your sitemaps (Indexing → Sitemaps). Delete any sitemap you didn’t add.
Step 3: Clean the site
Deleting the spam pages is not enough. The code that creates them, and the way the attacker got in, must go too, or the spam returns within days.
- Back up files and database before changing anything.
- Scan everything. Spam generators hide in fake plugins, must-use plugins, modified core files, the uploads folder and the database. The free Moatline Malware Scanner checks all of these and compares every plugin file with its official WordPress.org copy.
- Check
.htaccessfiles yourself. Spam hacks often add rewrite rules that send search engines to a PHP spam generator. Moatline does not check.htaccessrules, so open each one and remove anything you didn’t add. - Remove unknown admin users (see unknown admin user), update everything, change all passwords and generate new security keys.
- Make sure the spam URLs now return “not found”. Don’t redirect them to your home page. A 404 or 410 tells Google the pages are gone for good.
Our malware removal guide walks through each cleanup step in detail.
Step 4: Ask Google to review
- Back in Security issues, click Request review.
- In a few sentences, say what you found, what you removed and how you closed the hole. Be specific: Google wants to see that you fixed the cause, not just the symptom.
- Submit an up-to-date sitemap with only your real pages, then use URL inspection to Request indexing for your home page and most important pages.
If Security issues lists nothing but the label still shows, skip the review: clean the site, make sure the spam URLs return 404, and request indexing for your main pages so Google recrawls them sooner.
How long it takes
According to Google, reviews for hacked spam can take up to several weeks, malware reviews take a few days, and phishing reviews take about a day. Once Google confirms the site is clean, it removes the warnings within 72 hours. If the review fails, Google tells you why. Fix what it found and request a review again.
While you wait, keep scanning. If anything reappears, the attacker still has a way in, and a second failed review makes the next one slower.
Sources: Google’s “This site may be hacked” help page and guide to requesting a review.
Frequently asked questions
Will the warning go away by itself?
Does “This site may be hacked” hurt my rankings?
Is this the same as the red “Deceptive site ahead” screen?
What should I write in the review request?
Scan your site for free
Moatline checks files, the database and page-builder content. Nothing changes unless you click a button.
More guides
- WordPress site redirecting to spam? How to find and fix it
- Host suspended your WordPress site for malware? What to do next
- Unknown admin user in WordPress? How to check it, remove it and lock the door
- Japanese or pharma spam in Google results? How to fix the WordPress hack
- A website asked you to press Windows + R to “verify you are human”? Here’s what to do
- WordPress fake CAPTCHA malware (ClickFix): how to find and remove it