November 20, 2026
You search for your business on Google and see pages in Japanese selling knock-off brands, all under your own domain. That is the Japanese keyword hack, one of the most common WordPress infections. It creates thousands of spam pages on your site, hides them from you, and can push your real pages out of search results. Here is how to confirm it, clean it and stop it coming back.
What is the Japanese keyword hack?
Attackers get into your site, usually through an outdated plugin, a weak password or a leftover file, and add code that generates spam pages in Japanese. The pages are often shown only to Google, so the site looks normal to you. Google then indexes the spam under your domain, which hurts your rankings and your reputation.
Signs your site has the Japanese keyword hack
- A
site:yourdomain.comsearch on Google shows Japanese titles you did not write. - Google Search Console shows a sudden jump in indexed pages, or a security issue warning.
- A new user or a new verified owner appears in Search Console that you did not add.
- Unknown PHP files, or files with odd names, in your WordPress folders.
- Your
.htaccessfile contains rules you did not add.
How to remove the Japanese keyword hack (step by step)
- Take a full backup first, even of the infected site, so you can investigate.
- Check Search Console users and owners. Remove any account you do not recognize. Attackers often add themselves to submit their spam sitemaps.
- Change every password: WordPress admins, hosting, FTP/SFTP and database. Remove unknown admin users.
- Replace WordPress core files with fresh copies of the same version.
- Reinstall every plugin and theme from a clean source. Delete anything you do not use.
- Search for injected code in
wp-content, the uploads folder (PHP files do not belong there),wp-config.php,.htaccessand the database (options and posts). - Remove the spam pages and sitemaps the hack created, so the spam URLs return 404 or 410.
- Request removal of the spam URLs in Search Console and submit your clean sitemap.
- If Google flagged the site, request a security review once it is clean.
How to stop it coming back
- Keep WordPress, plugins and themes updated, and remove what you do not use.
- Use strong, unique passwords and two-factor login for every admin.
- Block PHP execution in the uploads folder.
- Use a firewall and file-change monitoring.
- Keep daily off-site backups so you can roll back fast.
How long until Google drops the spam pages?
Usually a few days to a few weeks after cleanup, depending on how many pages were indexed and how often Google crawls your site. Returning 410 for spam URLs and using the removal tool speeds it up.
FAQ
Can a security plugin remove it on its own?
Sometimes it finds part of the infection, but this hack often leaves backdoors and database entries behind. A manual check is the safest way to make sure it is fully gone.
Will my rankings come back?
In most cases, yes, once the spam is gone and Google recrawls the site.
Should I restore an old backup instead?
Only if you know the backup is from before the hack, and you still need to fix the hole that let attackers in.
Read our guide on what to do in the first 24 hours after a hack, or let WPBuilderPros remove the malware for you, with same-day response and hardening included.




