Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Japanese keyword hack: find and remove hidden spam pages

SEO-192High impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

The Japanese keyword hack is a type of site compromise. An attacker gets in through an outdated plugin, a weak password or a stolen login. They then generate many new pages with Japanese text, product names and affiliate links, usually for counterfeit brand goods.

The pages often use cloaking. That means the server shows one thing to normal visitors and something else to search engine crawlers. You open your site and it looks fine. Google sees spam.

Typical signs: odd URLs like /?p=123456 or /abc/xyz123.html, a huge sitemap.xml you did not create, strange files in the web root, and search results for your domain showing Japanese titles.

Why it costs you leads or sales

Google may flag your site as hacked, drop your real pages in the rankings or show a warning in results. Your good pages compete with thousands of spam pages for crawl attention. Visitors who land on spam may be redirected to scam shops, which damages trust in your brand. Browsers or security tools can also warn people away.

How the hack drains your funnel
  1. Site compromisedOutdated plugin or stolen login lets an attacker in
  2. Spam pages indexedThousands of Japanese URLs appear in Google
  3. Rankings and trust dropReal pages lose visibility, warnings may appear
  4. Leads and salesFewer visitors reach forms and checkout

The break happens before a visitor ever reaches a form or checkout.

Organic visits before and after an infectionExample numbers
Organic visits before and after an infection (example)Week 1: 1,000 visits per week; Week 2: 980 visits per week; Week 3: 700 visits per week; Week 4: 450 visits per week; Week 5: 300 visits per week03837671,000980700450300Week 1Week 2Week 3Week 4Week 5visits per week

Example: illustrative numbers showing organic visits falling after spam pages are indexed. Real results vary.

How to check if your site has it

Check for the Japanese keyword hack
  1. Search your domain in Google

    Search site:yourdomain.com and scan the titles for Japanese characters, brand names you do not sell or odd product pages. Also try site:yourdomain.com 激安 or site:yourdomain.com ブランド.

  2. Open Google Search Console

    Check Security & Manual Actions, then Pages (indexing) and Performance. A sudden jump in indexed pages or queries in Japanese is a strong sign.

  3. Test as Googlebot would see it

    In Search Console use URL Inspection on a suspicious URL and open the live test and the rendered page. This shows what Google receives, which may differ from your browser.

  4. Look at your sitemap

    Open /sitemap.xml and /robots.txt. Unknown sitemap files or huge URL lists you did not create are a red flag.

  5. Inspect files on the server

    Look for recently changed files, unknown PHP files, and edits to .htaccess or index.php. Ask your host to run a malware scan if you are unsure.

How to fix it

Work in this order: contain, clean, close the hole, then ask Google to re-review. Cleaning without closing the hole usually means reinfection.

Clean up the hack
  1. Take a full backup of the infected site

    Keep a copy for investigation, then work on a staging copy or in maintenance mode if you can.

  2. Restore a clean backup or remove the malware

    The safest route is restoring a backup from before the infection date, then updating. If you clean by hand, remove the unknown files, injected code in core files and rogue admin users. A professional cleanup service or your host's security team can help.

  3. Change every credential

    Reset passwords for the CMS, hosting panel, FTP/SFTP, database and email. Rotate database passwords and security keys. Remove users you do not recognise.

  4. Update everything

    Update the CMS, themes and plugins. Delete unused or abandoned plugins and themes, and any nulled (pirated) ones, which are common entry points.

  5. Remove the spam URLs from Google

    Once the pages return 404 or 410, they drop out over time. Submit a clean sitemap with only real pages. For urgent cases use the Removals tool in Search Console.

  6. Request a review

    If Search Console shows a Security issue or manual action, fix it and use Request Review with a short note on what you cleaned and how.

Platform-specific cleanup
  1. Reinstall core files

    Go to Dashboard > Updates and reinstall WordPress, or replace wp-admin and wp-includes with fresh copies. Check wp-content/uploads for .php files, which should not be there.

  2. Check admins and options

    Under Users, delete unknown administrators. Reset salts in wp-config.php to log everyone out. Check .htaccess for rewrite rules you did not add.

  3. Scan and remove bad plugins

    Run a malware scanner plugin and compare plugin folders against fresh downloads. Delete anything you do not use.

Find recently changed PHP files and suspicious code (Linux server)bash
# PHP files changed in the last 14 days
find /var/www/html -type f -name '*.php' -mtime -14

# PHP files inside uploads (usually should be none)
find /var/www/html/wp-content/uploads -type f -name '*.php'

# Common obfuscation patterns (review each hit manually)
grep -rIl --include='*.php' 'eval(base64_decode' /var/www/html

How to confirm it's fixed

Confirm the cleanup worked
  • site:yourdomain.com no longer shows Japanese or unknown pages (this can take days or weeks)
  • Spam URLs return 404 or 410 when fetched
  • URL Inspection live test shows your real content
  • No unknown files changed in the last few days
  • Sitemap lists only your real pages
  • Search Console shows no Security issues or manual actions
  • All passwords changed and unknown users removed

How to prevent it happening again

Hardening checklist
  • Turn on automatic updates for core, plugins and themes where safe
  • Delete unused plugins, themes and old staging sites
  • Use unique, long passwords and two-factor authentication for admin and hosting
  • Limit admin users and file permissions
  • Keep off-site backups and test restoring them
  • Add your site to Google Search Console and turn on email alerts
  • Check site:yourdomain.com once a month
Infected vs clean

Infected

  • Thousands of unknown indexed URLs
  • Japanese titles in search results
  • Unknown files and admin users
  • Rankings falling

Clean

  • Only your real pages indexed
  • Spam URLs return 404 or 410
  • Updated software, new credentials
  • Search Console shows no issues

How FunnelGuard handles this

FunnelGuard does not check for this yet. Detecting hidden spam pages is a possible future check, not something it does today.

What FunnelGuard does cover nearby: a robot visitor runs your real journeys, such as lead forms, checkouts and booking buttons, on a schedule and checks each step, the tracking hits and whether test leads arrive. If malware breaks a form, a redirect or tracking, a failed journey can point you to a problem. That is not the same as detecting spam pages, and a hack that leaves your journeys working would not be noticed.

To watch for this issue yourself, use Google Search Console (Security issues, Pages and Performance reports, with email alerts on), a monthly site:yourdomain.com search, and a malware scanner or file-change monitoring from your host. A free FunnelGuard plan covers 1 site and 2 journeys with daily checks, no card needed.

Questions people ask

Why does my site show Japanese text in Google results?

This is usually the Japanese keyword hack. Malware has created spam pages on your site, often shown only to Google, and they are now indexed. Search site:yourdomain.com and check Search Console to confirm, then clean the site and close the entry point.

How do I remove the Japanese keyword hack?

Restore a clean backup or remove the injected files, update all software, delete unused plugins and reset every password. Make the spam URLs return 404 or 410, submit a clean sitemap and request a review in Search Console if there is a security issue or manual action.

Why does my site look normal but Google shows spam pages?

The malware uses cloaking, meaning it shows spam only to crawlers or to people arriving from search. Use the URL Inspection live test in Search Console to see what Google receives.

How long does it take for Google to remove hacked spam pages?

It can take days to several weeks, depending on how many pages were created and how often Google crawls your site. Making them return 404 or 410 and submitting a clean sitemap speeds it up. The Removals tool can hide URLs quickly while they drop out.

Will the Japanese keyword hack hurt my rankings?

Yes, it can. Google may flag the site as hacked, spread crawling across spam URLs and lower trust in your real pages. Rankings often recover after a full cleanup, but not instantly.

How did my site get the Japanese keyword hack?

Common causes are outdated plugins or themes, nulled (pirated) software, weak or reused passwords and stolen logins. Check your logs and file changes to find the entry point, because cleaning without fixing it often leads to reinfection.

Should I block the spam URLs in robots.txt?

No. Blocking stops Google from recrawling and seeing that the pages are gone, so they may stay indexed. Let them return 404 or 410 instead.

Does FunnelGuard detect the Japanese keyword hack?

No, not yet. It is a possible future check. FunnelGuard monitors your funnels such as forms and checkouts, so use Search Console and a malware scanner to watch for hidden spam pages.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.