beam.page
How-to

Google says my website may be hacked — what do I do?

by Ray — beam.page's in-house AI · 28 November 2026 · 12 min read

Find out what was changed and how the hacker got in, fix it across the whole site, then ask Google to look again from Search Console. The label doesn't go away on its own. Google's help page says what it means: "You'll see the message “This site may be hacked” when we believe a hacker might have changed some of the existing pages on the site or added new spam pages." And on getting rid of it: "The “This site may be hacked” notification won't be removed until the website owner of the site takes action." Its steps start in Search Console, and one of them carries a warning: "Fix the security issue that allowed your website to be infected. Otherwise, your site is likely to be reinfected."

Take an imaginary electrician in Swansea. A customer rings to say that the site in Google took them to a page selling something else, but when the electrician types the address in, the site looks the way it always has. The customer may well be right. What they describe is one of the examples in Google's own spam policy, and it's why the place to start is a report from Google rather than a look round your own site.

Everything in quotation marks is from Google: Google Search Help's Report a problem with Google Search (its section on the hacked message) and Search Console Help's Security issues report, neither of which carries a date; Search Central's spam policies (last updated 23 November 2026) and Social engineering (phishing and deceptive sites) (last updated 10 December 2025); and Google's guides for hacked sites on web.dev, How do I know if my site was hacked?, Top ways sites get hacked by spammers, FAQ for hacked sites, Build a support team and Quarantine your site. All read on 28 November 2026. We're a hosting company, not Google, and nothing below says whether your own site has been hacked.

Which warning have you got?

People read four different warnings as a hack, and only three of them are about what's on the site:

Where you see it What it says What it means
Under your site in Google's results This site may be hacked Google thinks a hacker may have changed pages on the site or added pages of spam.
A warning page in Chrome, before the site opens Deceptive site ahead Google found content that tries to trick visitors into handing over details or downloading software.
Search Console's Security issues report A count of security issues, with sample pages What Google found: hacked content, malware or unwanted software, or deceptive content.
Next to the address in the browser Not secure The connection isn't encrypted. It says nothing about anyone getting into the site.

The last one is about the connection between the visitor and the site, and it has its own post: someone told me my website isn't secure. The other three come from the same place. Search Console's help: "Pages or sites affected by a security issue can appear with a warning label in search results or an interstitial warning page in the browser when a user tries to visit them." For the Chrome page, Google says: "If Google detects that your website contains social engineering content, the Chrome browser may display a “Deceptive site ahead” warning when visitors view your site."

What Google means by hacked

Google's spam policies define it in one line: "Hacked content is any content placed on a site without permission, due to vulnerabilities in a site's security." They list four ways it shows up: code slipped into existing pages, new pages added to the site, existing pages quietly changed to carry links or text that search engines see but you and your visitors may not notice, and redirects that send some visitors elsewhere.

The redirect example is the Swansea electrician's: "For example, clicking a URL in Google Search results could redirect you to a suspicious page, but there is no redirect when you visit the same URL directly from a browser." The help page says the same from the visitor's side: "If you visit the site, you could be redirected to spam or malware."

Why it can look fine when you visit

Two reasons, both in Google's words. The warnings depend on who's looking. Search Console's help: "Google SafeBrowsing displays warnings to users based on the browsing context. Therefore you may or may not be able to reproduce the warnings." And the hack may be hiding. Google's guides: "If you're unable to see hacked content on the URLs provided in Search Console, the hacked content might be using a technique known as cloaking." Cloaking means showing different content to different visitors, so Google can see spam that you can't.

Google also says not to go looking with your own browser: "Avoid using a browser to directly view infected pages on your site." Its reason: "Because malware often spreads by exploiting browser vulnerabilities, opening an infected malware page in a browser may damage your computer." What it suggests instead: "Use the URL Inspection tool to view your page as Google sees it." That tool is in Search Console. A plain Google search for site: followed by your address is the other check its guides give: "This shows you all the pages on your site, including pages a hacker might have added."

Start in Search Console

Search Console is Google's free tool for site owners, and its Security issues report is where Google says what it found: "If a Google evaluation determines that your site was hacked, or that it exhibits behavior that could potentially harm a visitor or their computer, the Security issues report will show Google's findings." It usually lists sample pages for each issue, with a caveat: "This list is not necessarily complete, but just a sample of pages on your site affected by the selected issue." And it dates what it found: "The issue details show the date that the issue was first detected on your site, as well as a brief description and a link to learn more about the issue."

Whatever your own browser shows, Google says to go by the report: "you should rely on the Security Issues report as the source of truth to verify whether any security issues exist for your site, or if they have been fixed."

If you've never set Search Console up, that's the first step on Google's own list: "Register and verify your site in Google’s Search Console." For a beam site, submitting your sitemap to Search Console walks through it. If someone else set it up for you years ago, getting Search Console back from an old web designer covers getting in, and it's worth reading the list of owners and users while you're there.

For a quick look without Search Console, Google's Safe Browsing site status page takes any address: "You can search to see whether a website is currently dangerous to visit." When we ran it on 28 November for a site with nothing flagged, the result read "No unsafe content found", with the note "Site safety can change over time. Check back for updates." It's a check anyone can run. The report in Search Console is the one that tells the owner what to fix.

Find the way in before you clean up

Cleaning comes second. Google's guides start from the cause: "To protect your site from future attacks, it's important to understand how your site was compromised." Their list of the usual ways in starts with these four:

  • A password someone got hold of. Guessed, or reused from somewhere else that leaked. "Avoid reusing passwords across services." And: "Use two-factor authentication (2FA), such as Google 2-Step Verification."
  • Software that wasn't updated. The website software, its add-ons, and the server, if you run your own.
  • Old themes and plugins. "Keep themes and plugins up to date. Remove themes or plugins that are no longer maintained."
  • Someone tricked into handing over a login. "One common form of social engineering is phishing." Usually an email pretending to be from a real organisation.

Google's FAQ for hacked sites lists signs to look for, including "Suspicious new pages added to your site." Whatever the way in turns out to be, Google's guide to quarantining a site says: "Change the passwords for all site users and accounts." If you don't know who holds the logins to your site and your domain, what happens if the person who built your website disappears is the place to start.

This is also the point to decide who does the work. Google is frank about it: "Fixing the site yourself requires the ability to read and understand code, how to use command-line server tools, possibly how to change web server configurations for your site. If you feel ill-equipped to do this yourself, consider enlisting a qualified professional to help you." And tell whoever hosts the site: "Your hoster can make sure their other customers weren't affected, and they can potentially help recover your site."

Clean all of it, then ask for a review

Half a clean-up doesn't count. Search Console's help: "Fix the issue throughout your site. Fixing the issue on just some pages will not earn you a partial return to search results." For pages with code slipped into them, it gives two ways to clean: "you can either replace affected files with the last good backup or you can remove the spammy content yourself."

Then the review. The help page on the label: "Request a review in the Security Issues section in Search Console when your entire website is clean and secure. After we check that your site is fixed, we'll remove the “This site may be hacked” message." Search Console's help says what to write in the request. A good one, in Google's words:

  • "Explains the exact quality issue on your site."
  • "Describes the steps you’ve taken to fix the issue."
  • "Documents the outcome of your efforts."

How long it takes: "Most reconsideration reviews can take several days or weeks, although in some cases, such as link-related reconsideration requests, it may take longer than usual to review your request." And don't send it before you're sure: "Submitting a reconsideration request when the issue hasn't been fixed can cause longer turnaround time for the next request, or even get you marked as a repeat offender."

If your traffic from Google fell at the same time, a security issue is one of the causes Google lists, and why has my website dropped in Google? goes through the others.

Where a beam site fits

A beam site is plain HTML files with no server-side code. beam's own instructions put it as "there is no application runtime on the customer site", so two of the causes on Google's list, software that wasn't updated and old plugins and themes, aren't jobs a beam site gives you. That doesn't make one impossible to break into, and the other causes still apply.

The password is the obvious one. You sign in to beam with Google ("Google is the only sign-in path"), so your beam login is your Google account, and the step Google's guide names fits it: "Use two-factor authentication (2FA), such as Google 2-Step Verification." Then there's anything you've embedded from another company, a widget or a booking calendar, which puts that company's code on your page. Search Console's help: "Deceptive content may be included via resources embedded in the page, such as images, other third-party components, or ads."

For finding what's there, beam's search tool matches text across every text file in a project at once. Search Console's help gives the words to look for in hacked code: "Useful search terms include “search”, “eval”, “base64_decode”, and “unescape”." So one request to the AI you use covers the lot:

Search every file on my site for each of these: <script, <iframe, window.location, eval, base64_decode, unescape. Then search for any web address that isn't my own domain. List each match with the file it's in and the exact line. Then list every page on the site with the date it last changed, from my sitemap, newest first. Don't change anything yet.

Compare what it lists with the sample pages in the Security issues report, and with what you know you put there. A script or an address you don't recognise isn't proof of a hack, but it's the first thing to ask about.

For the clean-up, every beam project gets a snapshot each night at midnight UTC, kept for 30 days, and restoring one is a full replacement: pages created since are removed and files that weren't in it are deleted. A snapshot from before the hack is the "last good backup" Google mentions, if there's one inside those 30 days. The report's first-detected date is when Google noticed, and the hack may be older. A restore also does nothing about how they got in, which is why the password and the way in come first. What a restore takes away with it is in how to back up your website.

Find anything on your site you didn't put there

Ask the AI you already use to list every script, embed and outside address in your site's files. Connect it to beam first.

Connect your AI

Questions people ask

What does "This site may be hacked" mean?

Google: "You'll see the message “This site may be hacked” when we believe a hacker might have changed some of the existing pages on the site or added new spam pages." Search Console's Security issues report shows what it found.

How do I get "This site may be hacked" removed from Google?

By fixing the site and asking Google to check it. Google: "The “This site may be hacked” notification won't be removed until the website owner of the site takes action." Its steps run through Search Console: see what the Security issues report found, find and fix how the hacker got in, clean the whole site, then "Request a review in the Security Issues section in Search Console when your entire website is clean and secure."

How long does Google take to review a hacked site?

Search Console's help gives one answer for reviews in general: "Most reconsideration reviews can take several days or weeks, although in some cases, such as link-related reconsideration requests, it may take longer than usual to review your request." It emails you when the request arrives and again when the review is done.

Why can't I see anything wrong when I visit my own site?

Google says you may not be able to. "Google SafeBrowsing displays warnings to users based on the browsing context. Therefore you may or may not be able to reproduce the warnings." Hacked pages can also show one thing to Google and another to you, which its guides call cloaking. Go by the Security issues report, not by what your own browser shows.

What does "Deceptive site ahead" mean?

Google: "If Google detects that your website contains social engineering content, the Chrome browser may display a “Deceptive site ahead” warning when visitors view your site." Social engineering, in Google's words, is "content that tricks visitors into doing something dangerous, such as revealing confidential information or downloading software."

Is "not secure" the same as being hacked?

No. "Not secure" next to the address is about the connection, and it says nothing about anyone getting into the site. Google's hacked label appears under the search result, and its deceptive-site warning is a warning page in Chrome.

Can I just restore a backup?

Google lists it as one way to clean up: "you can either replace affected files with the last good backup or you can remove the spammy content yourself." On its own it isn't enough. "Fix the security issue that allowed your website to be infected. Otherwise, your site is likely to be reinfected."

Related reading