hello@wpfoss.com
Hacked WebsiteWebsite SecurityGoogleRecovery

This site may be hacked: what the Google warning means

Google shows "This site may be hacked" under your website in search results. What it means, what to do first, and how to get the warning removed.

By WPfoss Team

Someone searches for your business, and under your website’s name Google shows a grey line: “This site may be hacked.” Customers read it too, and most of them will not click.

The short answer: it is a warning label Google puts in search results when it detects hacked content on your site. Google defines hacked content as “any content placed on a site without permission, due to vulnerabilities in a site’s security.” The label means Google thinks someone other than you has changed or added something on your website.

This guide explains what Google is looking at, what to do in the first hour, and how to ask Google to remove the warning once the site is clean.

What Google means by “hacked”

Google’s spam policies list four ways a site is typically hacked. In plain English:

  • Code injection. The attacker slips harmful code into pages that already exist, often JavaScript, so that visitors are affected without you seeing anything.
  • Page injection. The attacker adds whole new pages to your site, usually stuffed with spam or built to steal logins. They are meant to show up in search results or to be used in phishing.
  • Content injection. The attacker quietly changes your existing pages, for example by adding hidden text or links that search engines can see but you and your visitors may not.
  • Redirects. The attacker adds code that sends some visitors to harmful or spammy pages. Google notes this can depend on how the visitor arrived, their device or their browser.

That last point is why many owners say “my site looks fine.” The attacker often wants you not to notice. A site can look normal to you, on your own computer, and still send people arriving from Google somewhere else.

Why Google bothers

The warning is not a punishment aimed at you. Google says hacked content “gives poor search results to our users and can potentially install malicious content on their machines.” Google also says that sites breaking its policies may rank lower or not appear in results at all, so a hacked site can lose visitors twice: once from the label, and again from lost visibility.

A browser can also show a full-page warning when someone tries to visit. Google says security problems can produce either a label in search results or a warning page in the browser.

What to do first

Do these in order. Taking the site offline briefly is better than letting visitors get harmed.

  1. Believe the warning. Do not wait to see if it goes away. It will not.
  2. Tell the people who run your site. That means your host, your developer and anyone with a login. Ask who has made changes recently.
  3. Look at what Google sees. Search your own domain in Google in the form site:yourdomain.com and scroll through the results. Pages you do not recognise, strange product names or text in another language are signs of page injection.
  4. Check on a phone, arriving from Google. Open your site by clicking its search result, not by typing the address. Hidden redirects often only happen to people who arrive from search.
  5. Take a fresh backup of the infected site so you can see what changed, but do not restore it to a live site unchecked. A backup made after the hack contains the hack.
  6. Change every password and key for the website, hosting, database and email, after the site has been cleaned and not before, or the attacker simply sees the new ones.
  7. Update everything. An out-of-date plugin, theme or the website software itself is one of the most common ways in. Google’s own example of a fix in its review guidance is removing spammy content and updating an out-of-date plugin.

For the longer version, read is my website hacked and WordPress site hacked: what to do first.

Cleaning the site is the hard part

Finding every changed file, every added page and the hidden way back in is specialist work. Google itself says to use a reliable professional if you are not comfortable with server-level cleanup. A common failure is to delete the visible spam pages, leave a hidden back door behind and be hacked again within days.

You do not need the technical words to manage the job. Ask your host or developer:

  1. How did the attacker get in, and has that been closed?
  2. Did you find and remove every changed or added file, or only the ones we could see?
  3. Are the website software, plugins and themes now up to date, and are unused ones removed?
  4. Have all passwords and keys been changed, and was that done after the cleaning?
  5. Is anything now watching for it to happen again?

How to ask Google to remove the warning

Only when the site is truly clean:

  1. Open Google Search Console for your site and go to the Security Issues report. Google describes it as listing indications that your site was hacked or has behaviour that could harm a visitor or their computer. If you have not set up Search Console, your developer can do it, and you will need to prove you own the site.
  2. Select Request a review.
  3. For each type of problem listed, write a sentence on how you fixed it.

Google’s warning is blunt: if the problem still exists, your site stays flagged for longer, so be sure the problem is truly fixed before asking. Do not send repeat requests.

How long it takes

Google says malware reviews take “a few days to process” and that hacked spam reviews may take “up to several weeks” because they can involve a manual check. Google gives no exact day counts. Once it finds the site clean, warnings should be removed within a few days, and the labels in Search Console, Chrome and search results can lag behind each other, so wait a day before checking again.

Stopping it happening again

Most hacked small business sites are not targeted personally. Attackers scan for old software, weak passwords and forgotten logins. Keep everything updated, remove what you do not use, use a different strong password on every login, switch on two-factor authentication and keep backups that are stored away from the site.

Want us to check it?

Run your address through our free website security checker for a quick outside view of obvious problems. It cannot see inside your hosting account, so a clean result is not proof you are not hacked. If you want a person to clean the site, close the way in and keep it watched afterwards, see our website security service.

Sources and further reading

Frequently asked questions

What does "This site may be hacked" mean?

It is a label Google shows in search results when it detects hacked content on a site. Google defines hacked content as content placed on a site without the owner's permission, because of a weakness in the site's security.

Does the warning mean my site really was hacked?

It means Google found something that looks like hacked content. Treat it as real until you have checked, because hackers often hide their changes from the owner.

How do I get the warning removed?

Clean the site and close the way the attacker got in, then open the Security Issues report in Google Search Console and select Request a review, describing what you fixed.

How long does Google take to remove the warning?

Google says malware reviews take a few days, and reviews for hacked spam can take up to several weeks because they may involve a manual check.

Can I just ask for a review straight away?

No. Google warns that if the problem still exists, your site stays flagged for longer. Be sure the problem is truly fixed first.

Stop impersonation. Control access. Protect your business.

Choose the service you need, or book a security review and we will help you identify the correct starting point.