// blog / indexing

How I check what a Japanese keyword hack did to a site's Google results

After a Japanese keyword hack is cleaned up, I check what it left behind in Google: every spam URL it got indexed, whether each one now returns a 404 or 410, and anything it added to the sitemap or robots.txt. Then I request a review in Security issues. The malware cleanup itself is a security specialist's job.

By Muhammad Younus Updated 10 min read Indexing

Indexing and Search Console: illustration for "Checking a Japanese keyword hack in Google"
// 01 - the symptoms

What does a Japanese keyword hack look like in Google?

It looks like your site, speaking Japanese. The hack creates new pages of auto-generated Japanese text in randomly named folders, and Google finds and indexes them like any other page on the domain. Google's guide to the hack starts with the Security Issues report in Search Console, then a site: search on the domain, looking for unusual URLs.

The fix has two halves, and they belong to different people. Someone has to remove the malware and close the hole it came in through. Then somebody has to clear up what the hack did to your search results, which is what my Google penalty recovery services cover, and that's the half I do.

Where the hack shows up in Google, and what each sign means
Where you see itWhat it looks likeWhat it tells me
A site: searchJapanese titles and snippets on URLs in folders the site never hadSpam pages are indexed, and the folder pattern is the first thing I note
Your own listing in GoogleThe label 'This site may be hacked' under the resultGoogle thinks pages were changed or spam pages were added
Search Console, Security issuesA hacked content issue, often URL injection, with sample pagesGoogle has confirmed it, and the review request lives here
Search Console, PerformanceJapanese queries, and pages you don't recognise taking impressionsThe spam is being shown to searchers, so those URLs come first
A Search Console emailA notice that someone you don't know has verified the siteGoogle's guide calls that a strong possibility the site's been hacked

The spam pages can also be cloaked, so a visitor sees the normal site while Googlebot gets the Japanese text. Google's guide points to the URL Inspection tool for that, because it shows what Google received.

// 02 - who does what

Who cleans the site, and what do I need before I start?

A security specialist or your host cleans the site. I don't remove malware or harden servers, because pulling spam URLs out of Google while the hole's still open just means new ones keep appearing.

What I need is short: full user access to the Search Console property, ideally a Domain property; the specialist's written confirmation that the site is clean and the entry point closed; and the date the hack was first noticed, so I can line the Performance report up against it. If there's no Search Console property at all, that's the first job, because the Security issues report and the review button both live there.

Remove owners you don't recognise. Google's guide says that if a new owner you don't recognise has been added in Search Console, you should revoke their access as soon as possible, and remove the verification token they used, often an HTML file in the site root or an .htaccess rule faking one. I check Settings, Users and permissions before anything else, because an unknown owner sees every report I'm about to work from.

// watch out

Don't request a review until the cleanup is finished. Google's help asks you to fix the issue across the whole site and test the fix first, and a request sent while spam pages still load only delays the one that would pass.

// 03 - the method

How I find every spam URL Google has indexed

The goal is one list of every spam address Google has seen. No single source has all of them, so I pull from several and merge.

  1. Step 01

    Run site: searches on the domain

    I search site: with the domain, then add Japanese words and the folder names I spot in the first results. A site: search is a sample, not a count, but it shows the URL patterns fast.

  2. Step 02

    Read the Security issues samples

    The report lists sample affected pages for each issue. They confirm the patterns I've found, but they aren't the full list.

  3. Step 03

    Filter the Performance report

    I filter the Pages tab for the spam folders, then look for Japanese text in Queries. Any spam URL that took impressions goes to the top of the list, because searchers are seeing it.

  4. Step 04

    Export the Pages report

    It shows which spam URLs are still indexed and which already return Not found (404). Google says its example lists stop at 1,000 rows, so on a big hack it isn't complete either.

  5. Step 05

    Check which sitemaps Google knows about

    The sitemap filter in the Pages report covers the sitemaps submitted in Search Console and any that robots.txt points to. A sitemap nobody remembers adding is the first file I open.

  6. Step 06

    Inspect a sample with URL Inspection

    A few URLs per pattern go through URL Inspection. A live test shows what the server sends Googlebot now, which is how cloaked spam gets caught.

  7. Step 07

    Merge, dedupe and group by pattern

    Everything goes into one sheet, with each URL's source and pattern. The patterns drive the fix, and the sheet becomes the review evidence.

// pro tip

Keep the sheet. Google's review request asks you to explain the issue, the steps taken and the outcome, and a dated list of spam URLs with their status codes does most of that work for you.

Rather have me do this? One person, whole job.

Book a call on Upwork
// 04 - status codes

What should the spam URLs return once they're gone?

A 404 or a 410. Google's documentation says it doesn't index URLs that return a 4xx code, and indexed URLs that start returning one get removed. It treats every 4xx except 429 the same way, so I use a 410 where the server can match a whole spam folder easily, and a 404 everywhere else.

What each response does to a spam URL
ResponseWhat happens in GoogleDo I use it?
404 or 410The URL is dropped once Google recrawls it and sees the errorYes, for every spam URL
301 to the homepageTells Google the page moved, when it didn't move anywhereNo, it hides the problem instead of ending it
200 with an empty pageGoogle may treat it as a soft 404: a page that looks missing while the server says it's fineNo, the status code has to say the page is gone
Blocked in robots.txtGoogle can't recrawl it to see it's gone, and a blocked URL can still show in resultsNo, and I check nobody's added one
Removals toolHides the URL for about six months, then it can come backOnly for the worst few, alongside a 404

The robots.txt block is the one people reach for, and it backfires. Google says robots.txt isn't a way to keep a page out of Google, and a blocked URL can still appear in results. The crawler has to reach the spam URL to learn it's gone.

Then I test every URL on the list with a browser user agent and with Googlebot's. A spam URL that 404s for one but returns 200 for the other means the cleanup isn't finished, and it goes back to the specialist.

// 05 - leftovers

How do I check the sitemap and robots.txt for leftovers?

The hack can leave instructions for Google as well as pages. I read these line by line, in the live files rather than a dashboard.

  1. i.

    The robots.txt file

    Google reads any Sitemap: line in robots.txt. I check each one points at a sitemap the site really generates, and that no new Disallow line hides a spam folder or the real site.

  2. ii.

    Every sitemap Google has seen

    Google's guide says to review any sitemap you don't remember adding and to remove any that holds nothing but spam, so once the specialist deletes those files I check each old address returns a 404.

  3. iii.

    The sitemap WordPress really generates

    Whether it's WordPress core's or the SEO plugin's, I compare its folders and URL count with the real content. Spam saved as posts would show up here.

  4. iv.

    Redirects, tested from outside

    Google's guide flags malicious rewrite rules in .htaccess. Editing server files is the specialist's side, but I test the result: real pages shouldn't redirect anywhere odd for Googlebot, and spam paths shouldn't redirect at all.

  5. v.

    Spam links inside real pages

    The Security issues report also names content injection, where spammy links get added to existing pages. I crawl the real pages for outbound links to domains the site never linked to.

If the sitemap setup was messy before the hack, this is a good moment to sort it, and that's the robots.txt and sitemap work I also do on its own.

// 06 - the review

How does the Security issues review work?

It's a button, but what you write behind it matters. Once every issue is fixed across the whole site and the fix is tested, you select Request Review in the Security issues report. Google's help says the request should explain the exact issue, describe the steps taken and document the outcome.

So I write it from the evidence: the URL patterns, the date the entry point was closed, how many spam URLs now return a 404 or 410, and what changed in the sitemaps and robots.txt. It's short and it doesn't argue. Once Google has checked the site is fixed, it removes the 'This site may be hacked' message.

// 07 - the timeline

How long does Google take to drop the spam pages?

There's no fixed number, and I won't invent one. Google's documentation gives three separate clocks. Each 4xx URL is dropped once Google recrawls it and sees the error, so every spam URL goes on its own schedule. The Security issues review takes several days or weeks, Google says, and it asks owners not to resubmit while one is pending. The Removals tool hides a URL for about six months, which is why I only use it for the worst few while the 404s do the real work.

So I track it rather than promise it: spam URLs moving into Not found (404) in the Pages report week by week, and the Japanese queries fading in Performance. If real pages start slipping into discovered or crawled but not indexed, that status has its own diagnosis, and it isn't always the hack. I can't promise when traffic comes back, and nobody truthfully can.

// 08 - afterwards

How do I stop the Japanese keyword hack coming back?

Closing the hole is the specialist's side, but I don't finish a job without asking about it. Google's guide to the Japanese keyword hack cites a study finding that 20% of hacked sites are hacked again within one day, and its checklist is plain: work out how the site was hacked, change the passwords for hosting, FTP and the CMS, turn on two-step authentication, and keep the CMS, plugins and themes updated.

My own last check is Search Console again, a few weeks on: no unknown owners back in Users and permissions, and no new Japanese queries in Performance.

// when to hand this over

Once your specialist signs the site off as clean, I can take the whole search side: the spam URL list, the status codes, the sitemaps and the review request, all done remotely. You can see how a job with me runs first.

Book a call on Upwork

Is this your site? Send me the URL.

Book a call on Upwork
// questions - indexing

What else do people ask about this?

Why am I getting Japanese search results for my own site?

Because spam pages were added to it. The Japanese keyword hack creates pages of auto-generated Japanese text in random folders on your domain, and Google indexes them as yours, so they show under your name.

How do I unhack a website?

Google's guide sets out the cleanup: back up the site, remove unknown Search Console owners and their verification files, check the .htaccess file for malicious rules, remove malicious files, then check the spam pages return Not Found. That's specialist work, and I take the search side after.

Should spam URLs return a 404 or a 410?

Either works. Google treats every 4xx code except 429 the same way and removes indexed URLs that start returning one.

Can I use the Removals tool instead of fixing the URLs?

No. Google says a removal lasts only about six months, so it's a stopgap. Spam pages that shouldn't exist need to return a 404 or 410.

Do you remove the malware as well?

No. Malware removal and server hardening sit outside my work, so a security specialist or your host handles that. I start once they've confirmed the site's clean.

// sources - checked

Where do these rules come from?

Platform and Google documentation, opened and read on the day this was written. Everything else is how I work.

  1. web.dev: fix the Japanese keyword hack
  2. Search Console Help: Security issues report
  3. Google Search Help: report a problem with Google Search ('This site may be hacked')
  4. Search Console Help: Page indexing report
  5. Search Console Help: Removals tool
  6. Search Console Help: URL Inspection tool
  7. Google crawler documentation: how HTTP status codes affect Google's crawlers
  8. Google Search Central: introduction to robots.txt
  9. Google Search Central: build and submit a sitemap
Muhammad Younus, WordPress technical SEO consultant
// who wrote this

One consultant, writing down his own method

I'm Muhammad Younus, a WordPress technical SEO consultant with 8+ years of experience and 100+ client sites fixed. Top Rated Plus on Upwork with a 100% Job Success Score. Every post here is the way I actually do the job, written in the first person because it's one person doing it, remotely, with no team behind the name.

Nothing in these posts is a client I can't name or a number I can't show. Where a figure comes from a client's Search Console, it's from a published case study, and where a rule comes from Google or a platform, the source is linked at the bottom of the post.

// the service behind this post
Muhammad Younus with his arms folded and a relaxed, confident smile
// next step

Want this done on your own site?

Book a call on Upwork, send the URL and read-only Search Console access, and you'll get a written scope for the search side before any work starts. One person does the whole job, remotely.

Book a call on Upwork