You search Google for your business and see results under your website with Japanese titles. Or you notice pages selling cheap brand bags and watches that you never made. Your home page looks normal and nothing seems wrong in the dashboard.
This is the Japanese keyword hack. It is one of the most common hacks on small WordPress sites, and it is easy to miss because it is built to stay hidden from the owner.
This guide explains how to check for it, why it often comes back after a quick clean, and how to remove it properly.
What the Japanese keyword hack is
An attacker gets into your site and creates thousands of new pages full of Japanese text. Google calls these autogenerated pages. They usually sit in folders with random names, for example yourdomain.com/ltjmnjp/341.html.
The pages link to online shops that sell fake brand goods. The attacker wants Google to show these pages because your domain has a good history with Google. Your site does the work, and the attacker gets the clicks.
For you, the damage is real:
- Google shows spam under your business name.
- Your real pages can lose rankings.
- Google may add “This site may be hacked” to your results, or show a red warning in the browser.
How to check if your site has it
1. Search Google for your own site
Type site:yourdomain.com into Google (use your own domain). This shows the pages Google has indexed for your site. Look through a few pages of results. Titles in Japanese, or pages about brands and products you don’t sell, are the clearest sign.
2. Check Google Search Console
If you use Search Console, check three things:
- Security & Manual Actions > Security issues. Google lists hacked content it found, with example addresses.
- Settings > Users and permissions. Look for owners you don’t know. Attackers often add themselves as an owner so they can submit their own sitemaps. If you got an email from Google saying a new owner was added to your site, take it seriously.
- Indexing > Pages and Sitemaps. A sudden jump in indexed pages, or a sitemap you never added, points to this hack.
If you have never set up Search Console, you can do it now, even on a hacked site. Our guide to the Deceptive site ahead warning explains how, step by step.
3. Don’t trust what you see when you click
When you click one of the spam results, you may see a “page not found” error. That does not mean the page is gone. The hack often shows Google one page and shows you another. This is called cloaking.
To see what Google sees, paste the address into the URL Inspection tool in Search Console and run a live test. If the result shows Japanese text, the page is still there.
Not sure if your site has been hacked at all? Our guide Is my WordPress site hacked? covers the other signs and free checks.
Why it keeps coming back
Many owners delete the spam pages, or install a security plugin and run one scan. A few weeks later the Japanese pages are back. This happens because the attacker leaves more than the pages:
- A backdoor. A hidden file, often in the uploads folder or inside a plugin folder, that lets them back in.
- Changed core files. Code added to files like index.php or wp-load.php, which builds the spam pages on the fly.
- Rules in the .htaccess file. These send Google to the spam pages, or fake the file Google uses to confirm Search Console ownership.
- A Search Console owner account. With it, the attacker can submit new sitemaps of spam pages.
- The same open hole. If the outdated plugin or stolen password they used is still there, they come back the same way.
A proper fix deals with all of these, not only the pages you can see.
How to remove the Japanese keyword hack
Work through these steps in order.
Step 1. Make a copy of the site as it is now
Before you change anything, back up the files and the database. This copy is for checking what happened, not for restoring.
Step 2. Remove unknown owners from Search Console
In Settings > Users and permissions, remove any owner you don’t know. Google also asks you to remove their verification token. This is usually a small HTML file in the main folder of your site (its name starts with “google”), or a rule in the .htaccess file that fakes that file. If you only remove the user and leave the token, they can verify again.
Step 3. Clean the site
This is the part that takes skill. A full clean looks like this:
- Scan the files and the database with a malware scanner, then check the results by hand.
- Restore the last clean backup from before the hack, or rebuild from clean parts: fresh WordPress files, and your theme and plugins reinstalled from their original source.
- Replace the .htaccess file with a clean WordPress default.
- Check the uploads folder. Only images and documents belong there, so remove any code files.
- Check the database for spam content, hidden links and admin users you don’t know.
- Remove any sitemap files you did not create.
If your backups only go back a few weeks, check that the backup you restore is really from before the hack. This hack can sit unnoticed for months, so the latest backup may already contain it.
Step 4. Close the way in
Find out how the attacker got in. On small business sites it is usually a plugin or theme that was not updated, or a weak or reused password. Update or replace that plugin or theme. If you skip this step, the hack usually returns.
Step 5. Change every password
Change the passwords for WordPress admin users, your hosting account, the database and FTP. Turn on two-factor login for WordPress and for your hosting account.
Step 6. Check that the spam pages are really gone
Run the spam addresses through the URL Inspection live test again. They should now return “Not found” (a 404 or 410 error) for Google too, not only for you.
Step 7. Tell Google
If the Security issues report listed a problem, tick that you have fixed it and click Request Review. Explain briefly what you found and what you did. Only do this when the site is clean.
Getting the spam pages out of Google
The spam pages drop out of Google over time, as Google visits them again and finds they no longer exist. On a site with thousands of spam pages this can take weeks or months.
To speed things up:
- Submit your real sitemap again in Search Console, so Google visits your real pages.
- Use the Removals tool in Search Console to hide the spam addresses from search results. If they all sit in one folder, you can remove the whole folder at once. This removal lasts about six months, which is usually enough for Google to drop the pages for good.
- Don’t block the spam pages in robots.txt. If Google cannot visit them, it cannot see that they are gone.
Your rankings for your real pages usually recover once the spam is gone, but how long that takes is up to Google.
What about the pharma hack?
The pharma hack works the same way, but the spam is about pills and medicines instead of brand goods. The attacker adds pages or hidden links that only Google sees. You find it the same way (site: search, Search Console, URL Inspection) and remove it with the same steps.
How to stop it happening again
Most small business sites are hacked through an outdated plugin or theme, or a weak password. To lower the risk:
- Update WordPress, your theme and your plugins regularly.
- Remove plugins and themes you don’t use.
- Use strong, unique passwords and two-factor login.
- Keep daily backups stored away from your hosting, kept long enough that you have a clean copy to go back to.
- Run a firewall and a daily malware scan, so a hack is found early, before Google finds it.
- Check Search Console now and then, and act on any email about a new owner.
Need help removing the Japanese keyword hack?
If you would rather not do this yourself, we can do it for you. Hacked Site Rescue starts from €149. We check your site first and confirm the price before we start. Then we restore a clean copy, close the way in, change your passwords, scan again and help you clear the spam from Google.
To stop it happening again, our WordPress care plan costs €29 a month plus tax. It includes daily backups kept for 50 days, safe updates, a firewall, daily malware scans and vulnerability checks every 6 hours. If your site is hacked after 30 days on the plan, we get it back online at no extra cost.
Leave a Reply