A hacked website can show its pages normally to its owner while serving Google pages about casinos, drugs or fake stores. The alert comes from a customer, a message from Google or a fall in visits. The longer you wait, the more time the hacker has to publish new pages.
Start by checking the Security issues report in Google Search Console, then run a “site:” search on your domain. Then clean the website, set up a 410 response for the URLs the hacker created and ask Google for a review if needed. A wave of bots or a copyright complaint can also explain some of these signs. The end of this page helps you rule them out.
Recognize a hacked website
The first sign shows up in Google: pages in Japanese, in Chinese or on topics unrelated to your business appear under your domain name. The Security issues report in Search Console sometimes shows a warning. Google can also show your pages with a warning message in its results1. After a cleanup, the Page indexing report can show thousands of 404 errors.
The owner sees nothing because the hacker hides their work. Google warns that the hacker can show a 404 error to the person checking a hacked page, while its robot still receives the spam page2. This technique, cloaking, means showing search engines different content from what visitors see.

A study published in Japan in 2025 shows the scale of the problem. Its authors counted 692,865 fake stores in the database of the Japanese cybercrime control center between May 2022 and December 2024. People reached them through decoy pages that search engines displayed as if they sat on hacked websites3. The study looks at the groups of scammers and doesn’t count the victim websites, so it doesn’t say how many websites were hacked.
Confirm the hack in Search Console and in Google
Read the Security issues report
In Search Console, the “Security issues” report sorts what Google has found: hacked content, through code, content or URL injection, malware, or social engineering (a page designed to deceive the visitor). It also gives examples of affected pages1.
Run the next check even if the report is empty, because a hacker can publish pages that Google hasn’t yet flagged as a hack.
Look for unknown pages with the site: command
Type site: into Google followed by your domain, such as site:example.com, then go through the results looking for titles in a foreign language, drug names or the word casino2. Add a spam word after your domain (site:example.com casino) to isolate these pages.
Inspect one of these URLs with URL inspection in Search Console. The live test shows the page Googlebot receives, even when your browser shows an error2.
Check the users in Search Console
According to Google, a hacker often adds themselves to the list of the website’s owners in Search Console. Google advises removing any unknown person as soon as possible2. Open the list of users in the settings and check that each email address belongs to someone allowed to manage the website.
If the report, the site: search and the list of users show nothing unfamiliar, your website probably hasn’t been hacked: move on to the section on waves of bots.
Clean the whole website before asking Google anything
Google asks you to fix the problem across the whole website before requesting a review1. Cleaning only the pages you spotted isn’t enough, because the hacker can restart the spam from a forgotten page or file.
Google advises changing every password and choosing for each account a password that is hard to guess and never used elsewhere. It recommends updating the website’s software, plugins and modules, because many websites are hacked through outdated software2. The hacker often uses the .htaccess file, which controls how the server behaves, to redirect visitors or create their pages. If you haven’t added any rule to this file, replace it with a fresh version, as Google suggests2.
Remove the hacker’s URLs with a 410 error
Once the website is clean, the URLs the hacker created return an error. Set up a 410 response to signal that these pages are gone for good. Apply the rule to their shared folder or parameter.
Google states that it treats 404 and 410 the same way: it removes the URL from its index and crawls it less and less4. SEO professionals still prefer the 410 for these URLs because it signals a deliberate removal, though no study settles it against the 404. In both cases, leave these URLs crawlable, with no block in robots.txt, so that Google sees the error.
Never redirect these URLs to the homepage or to a real page. A redirect would tie the hacker’s spam to your content instead of making it disappear.
Some SEO professionals submit a temporary sitemap containing these deleted URLs to bring Googlebot back. They remove it once the URLs have left the index. The Search Console Removals tool can urgently hide a specific URL or every URL that starts with the same prefix. This hiding only lasts about six months5.
For example, a tourism website cleaned up after a hack still has nearly a quarter of its URLs marked not found in its Page indexing report, months later. These errors don’t mean the cleanup failed, because Google crawls these URLs less and less before forgetting them4.
Ask Google for a review
If the Security issues report shows a problem, click “Request review” once the website is clean. Describe the fixes you made: the pages removed, the hole closed and what will stop the hacker from coming back1.
For a hack, Google says the review takes from a few days to a few weeks. Don’t send a new request until the previous one has received an answer1. Without a warning in the report, there is nothing to ask for: the 410 error and time are enough.
Then expect several weeks before Google forgets the hacker’s pages. Google’s policies list hacked content among spam practices, even when the owner had nothing to do with it6. In the field cases published by SEO professionals, a hacked website that fell during a spam update rarely recovered before the next one.
Tell a wave of bots from a hack
A sudden rise in visitors from a country the website doesn’t target often raises fears of a hack. Each visitor has a different address, views only the homepage and a few pages, and leaves without doing anything. In the situations of this kind that SEO professionals have described online, these visits came from bots.
To check, ask your host for the server logs. These logs show the name each robot gives itself and the network its addresses come from. Also check that these visits appear in the logs: visits missing from the logs only exist in the analytics tool.
Remove these visits from your reports with a filter before blocking the bots you identified. Don’t block entire countries, because you would shut out real visitors and useful robots. For example, a young website sees waves of visitors arrive from Singapore and China. Its owner blocks Singapore: the same visits come back from Brazil.
Respond to a copyright complaint
A copyright complaint can also make pages disappear from Google, with no hack at all. Google can pass these complaints on to Lumen, an organization that publishes them. In its results, it then replaces the removed pages with a link to the published complaint8.
Read on Lumen what the author of the complaint considers copied: texts, images, the website’s design or a similar domain name. For each item, gather your proof of creation, such as the original files or an image’s license.
Google follows the procedure of the US copyright law (the DMCA). It first removes the pages, then the targeted website can send a counter notification, after which Google may restore them8. If the complaint is unfounded, answer with this counter notification, backed by your proof. Competitors sometimes abuse these complaints, so the counter notification is your recourse with Google.
If part of it really is copied, remove it or redo it. Google says it demotes a website that receives a large number of valid removal requests6. For example, a website that had imitated a competitor’s design and domain name, with texts and images redone, receives a removal notice. We think the similar domain name weakens its defense the most: keep a domain name and a design that nobody confuses with a competitor’s.
Guide chapters to read next
- Fix technical SEO problems: 404 and 410 errors, robots.txt and the noindex tag.
- Get your website indexed by Google: URL inspection and the Page indexing report.
- Add your website to Google Search Console: the property and its users.
- Measure your SEO results: analytics compared with Search Console.
- How do I stop Google from indexing unwanted pages on my website?
- What should I do when Google has penalized my website?
- Why is my traffic from Google dropping?
- Why isn’t my website showing up on Google?
Sources
- ↑ Google, “Security Issues report“, Search Console Help, accessed November 17, 2026.
- ↑ Google, “Fix the Japanese keyword hack“, web.dev, accessed November 17, 2026.
- ↑ Makoto Shimamura, Shingo Matsugaya, Keisuke Sakai, Kosuke Takeshige and Masaki Hashimoto, “Uncovering Black-hat SEO based fake E-commerce scam groups from their redirectors and websites“, arXiv 2505.21021, May 27, 2025, published according to the authors in Digital Threats: Research and Practice (ACM), 2026, accessed November 17, 2026.
- ↑ Google, “How HTTP status codes, and network and DNS errors affect Google Search“, Google Search Central, accessed November 16, 2026.
- ↑ Google, “Removals and SafeSearch reports Tool“, Search Console Help, accessed November 17, 2026.
- ↑ Google, “Spam policies for Google web search“, Google Search Central, sections “Hacked content” and “Legal removals”, accessed November 17, 2026.
- ↑ Google, “Verifying Googlebot and other Google crawlers“, Google Search Central, accessed November 17, 2026.
- ↑ Google, “Digital Millennium Copyright Act (DMCA)“, Google Legal Help, accessed November 17, 2026.
