Japanese Keyword Hack: What It Is & How to Fix It

Japanese keyword hack on WordPress? Learn why Google shows Japanese spam pages under your domain, and how to remove them and clean up Search Console.
Japanese Keyword Hack What It Is & How to Fix It

Quick answer

If Google shows Japanese titles and pages you never created under your domain, your WordPress site has the Japanese keyword hack. Attackers generate spam pages and show them to Google, not to you.

The fix is a full cleanup of files and the database, removing the generator and backdoors, then cleaning up in Search Console so Google drops the spam URLs.

Most owners find out the same way. A customer, or a quick Google search, shows rows of Japanese product titles under their own domain.

The website itself looks fine in the browser. That is exactly why this hack can sit unnoticed for weeks.

We have been cleaning hacked WordPress sites since 2011, from Pakistan, for owners in the US, UK, EU and Australia. This guide covers what we check first, and how to get the spam out of Google once the site is clean.

Signs you have the Japanese keyword hack

You rarely see this hack in the dashboard. Watch for these instead:

  • Japanese titles in Google. A site:yourdomain.com search shows pages in Japanese.
  • Indexed pages jump. Search Console shows thousands more indexed or discovered URLs than you have. If the new pages are in English, about casinos, loans or essays, it is the wider WordPress SEO spam problem.
  • Unknown sitemaps. Sitemaps you never submitted appear in Search Console.
  • A new Search Console owner. Someone you don’t know is a verified owner.
  • Odd search queries. Performance reports show Japanese keywords, often brand names or “cheap” products.
  • Ranking drops. Your real pages slide while spam pages gain impressions.

Tip

Clicking a spam result may show your normal home page or a 404. That does not mean the site is clean. The spam is often served only to Googlebot.

What causes it, in plain English

Someone got into your site, usually through an outdated plugin or theme, a weak password, or a “nulled” (pirated) theme.

They install a small spam generator. When Google asks for a URL, it builds a fake Japanese product page on the fly and adds it to a sitemap so Google finds thousands of them.

Diagram: attacker gets in, generates Japanese spam pages and a fake sitemap, Googlebot is served spam while the owner sees the normal site
Illustration: why Google sees Japanese spam pages while you see your normal site.

The goal is your domain’s trust. The attacker borrows it to rank their counterfeit-goods pages, and your site pays the price in Google. The WordPress pharma hack works the same way with pill and pharmacy keywords, often by rewriting your real pages for Googlebot instead of adding new ones.

What it looks like in Google

The clearest test is a site: search. Type site:yourdomain.com into Google and scroll through the results.

Example Google site: search for a placeholder domain showing Japanese spam titles and random URL paths
Example only: a placeholder domain, not a real client site.
  • Titles in Japanese on an English-language site.
  • URLs with random folders, numbers or query strings you never created.
  • Descriptions about cheap brand bags, watches or shoes.

You can also try site:yourdomain.com japan or site:yourdomain.com 激安 (“cheap”) to surface spam pages faster.

Examples of the spam

These are examples only, written to show the pattern. They are not from a real client site.

Example spam URLs

# EXAMPLE ONLY (placeholder domain)
https://yoursite.com/shop/item-48213/
https://yoursite.com/jp/8f3a2c.html
https://yoursite.com/?p=a91x&cat=bag

Example spam sitemap entry

<!-- EXAMPLE ONLY: a sitemap you never created -->
<url><loc>https://yoursite.com/jp/8f3a2c.html</loc></url>
<url><loc>https://yoursite.com/jp/8f3a2d.html</loc></url>

Example rewrite rule

# EXAMPLE ONLY: suspicious .htaccess rule sending spam URLs to a hidden script
RewriteRule ^jp/(.*)$ wp-content/uploads/2024/cache.php?id=$1 [L]

Where the spam code hides

Deleting spam URLs is not enough. The generator, and the way back in, live somewhere on the server.

Six places the Japanese keyword hack hides: .htaccess, core files, fake sitemaps, database, uploads and plugins, users and Search Console owners
Illustration: the six places we check first.
  • .htaccess rules that route spam URLs to a hidden PHP file.
  • Injected lines in index.php or wp-config.php, often using eval() or base64_decode().
  • Fake sitemap files in the site root.
  • Spam rows in wp_posts or payloads in wp_options.
  • PHP files inside wp-content/uploads/, or plugins you never installed.
  • Rogue admin users and unknown Search Console owners.

Fix checklist

Use this as a checklist. If you can’t tick every line, the cleanup is not finished.

  • Full backup of files and database taken first.
  • Spam generator, injected code and backdoors removed.
  • WordPress core, themes and plugins replaced with clean copies.
  • Spam sitemaps deleted from the server.
  • Rogue admin users removed; all passwords and security keys reset.
  • Spam URLs return 404 or 410, not 200.
  • Unknown Search Console owners removed; spam sitemaps deleted there too.
  • Review requested if Google flagged the site; real sitemap resubmitted.
  • Monitoring in place for reinfection.

Cleanup steps, in order

Order matters. Cleaning Google before the site is clean only lets the spam back in.

  1. Back up and confirm

    Copy files and database. Record what Google shows today.

  2. Find the entry point

    Check outdated plugins, themes, users and recent file changes.

  3. Remove the generator and backdoors

    Clean .htaccess, core files, uploads, plugins and the database.

  4. Reinstall clean copies

    Core, themes and plugins from trusted sources only.

  5. Reset access

    New passwords, fresh salts, rogue admins removed.

  6. Make spam URLs return 404 or 410

    So Google learns the pages are gone.

  7. Clean up Search Console

    Owners, sitemaps, removals and a review request.

  8. Monitor

    Watch files, users and site: results for the next weeks.

Five-stage cleanup timeline from backup and site cleanup to Google review and spam results fading over weeks
Illustration: typical timings, not a guarantee.

Search Console cleanup

Once the site is clean, help Google catch up. Do these in Google Search Console, in this order.

Six Search Console cleanup steps: check owners, remove spam sitemaps, security issues, return 404 or 410, removals tool, request review
Illustration: the Search Console cleanup order.
  1. Check owners. Settings → Users and permissions. Remove any verified owner you don’t recognise.
  2. Remove spam sitemaps. In the Sitemaps report, delete anything you didn’t submit.
  3. Check Security issues. Note the sample URLs and confirm each is now gone.
  4. Return 404 or 410. Test a few spam URLs and confirm they no longer return 200.
  5. Use URL Removals. Temporarily hide the worst spam URLs or folders while Google recrawls.
  6. Request a review, then reindex. Request a review if Security issues lists the hack, resubmit your real sitemap and request indexing for key pages. If browsers also show a red warning, see our guide to the Deceptive site ahead warning on WordPress.
# Example: return 410 Gone for a spam folder (.htaccess, above the WordPress block)
RewriteRule ^jp/ - [G,L]

Warning

Removals in Search Console are temporary, about six months. If the spam URLs still return 200 when that ends, they can come back.

Risks of fixing it yourself

If you know your server, you can do much of this. The risk is a cleanup that looks finished and isn’t.

  • Generator left behind. New spam URLs keep appearing, so Google never settles.
  • Backdoor left behind. The attacker walks back in within days.
  • Breaking the site. Blind edits to .htaccess or core files can take it offline.
  • Wrong order. Search Console clean-up before the site is clean wastes weeks.
Before and after comparison of a WordPress site with the Japanese keyword hack and after a full cleanup
Illustration: what changes for Google, visitors and you.

Get it fixed: fixed prices

If you’d rather hand it over, our WordPress malware removal service covers the site cleanup and the Search Console steps. Standard infections are cleaned within 24 hours of receiving working access.

  • Basic — $149. Malware and backdoor removal with basic hardening. 30-day reinfection warranty.
  • Full Recovery — $249. Deep cleanup plus Google review. 60-day reinfection warranty.
  • Emergency — $349. Work starts within 4 hours of access. 60-day reinfection warranty.

Japanese spam in your Google results?

Fixed-price cleanup from $149. Emergency fixes from $149. Not sure it’s this hack? Start with a free malware check.

Frequently asked questions

What is the Japanese keyword hack?

It is a type of SEO spam. Attackers break into a site and generate pages full of Japanese text, usually selling counterfeit goods, so they can rank those pages using your domain’s reputation in Google.

Why do I see Japanese text in Google but not on my website?

The malware uses cloaking. It shows the spam pages to Googlebot and often hides them from you, so the site looks normal in your browser while Google indexes the Japanese pages.

How do I check if my site has the Japanese keyword hack?

Search Google for site:yourdomain.com and look for Japanese titles or URLs you never created. Then check Search Console for unknown sitemaps, unknown verified owners and the Security issues report.

Can I just delete the Japanese spam pages?

No. The pages are usually generated on the fly by hidden code. Deleting URLs, or posts you can see, leaves the generator and the backdoor in place, so the spam comes back.

Is the Japanese keyword hack dangerous for my rankings?

Yes. Spam URLs waste crawl budget, dilute your site’s relevance and can trigger Google’s hacked-site labels, which reduces clicks to your real pages until the site is cleaned and reviewed.

How long until the Japanese pages disappear from Google?

Once the site is clean and the spam URLs return 404 or 410, Google drops them as it recrawls. That often takes a few weeks. The Removals tool can hide the worst URLs sooner, but only temporarily.

Should spam URLs return 404 or 410?

Either works, as long as they stop returning 200. A 410 tells Google the page is gone on purpose, which can help it drop the URLs a little faster.

Do I need to remove sitemaps in Search Console?

Yes, if attackers submitted their own. Delete any sitemap you did not create, remove unknown verified owners first, then resubmit your real sitemap.

Will changing my WordPress password fix it?

Not on its own. Passwords should be reset after the cleanup, along with the security keys in wp-config.php, but changing them does not remove injected code or backdoors.

How much does it cost to remove the Japanese keyword hack?

BrandBees charges $149 for a Basic cleanup with a 30-day reinfection warranty, $249 for Full Recovery and $349 for Emergency, both with a 60-day reinfection warranty. Standard infections are cleaned within 24 hours of receiving access.

Want the Japanese spam gone this week?

WordPress experts since 2011. Cleanup from $149, cleaned within 24 hours of access, with a 60-day reinfection warranty on $249 and $349 plans.

Free PDF

WordPress Security Checklist

The same checks we run on client sites, written in plain English. Work through it in an afternoon.

  • Logins, updates, backups and hosting, step by step
  • A 10-minute self-test you can run today
  • What to do if you think you’ve been hacked
This field is for validation purposes and should be left unchanged.

Table of Contents

Need Help With Performance?

We’ll run a free performance audit on your WordPress site and show you exactly what needs to be fixed.

0
Contact us Founder call