Japanese Keyword Hack: How to Find and Clean Japanese Spam Pages on Your Site

Short answer
What is the Japanese keyword hack and why do Japanese pages show up under your site?
The Japanese keyword hack is an attack that adds auto generated Japanese spam pages to your website, usually linking to stores that sell fake branded goods. If Google shows Japanese titles under your domain, act calmly and in order: confirm the hack, remove the attacker's access, then clean the index.
Google's own security guides give this attack a dedicated page, because it is common and hard for site owners to notice. The spam pages are often visible only to Google, so when you visit the site everything looks normal. In this guide we show how to confirm the attack, how cloaking hides it, why rogue Search Console owners matter, the cleanup order and how to get the Japanese pages out of the index.
We covered the general hacked site process in my business website got hacked: the first 24 hours. Here we focus only on the symptoms and steps that are specific to Japanese spam pages.
How does Google describe the Japanese keyword hack?
The guide to fixing the Japanese keyword hack on web.dev describes it as an attack that creates new pages with auto generated Japanese text on your site. In practice, the pages sit under random looking folder or file names and link to stores selling fake branded merchandise.
However, the attacker's goal is not to damage your site. Instead, they borrow your site's trust in Google. In other words, the reputation your domain earned over years becomes a vehicle for ranking their spam. That is why the attack is often silent: the site works, forms send, and only search results show strange Japanese titles.
Google's spam policies also define hacked content as material placed on a site without the owner's permission through security flaws. So Google treats you as the victim, not the offender. Still, the cleanup is your responsibility.
Do not let the name mislead you either. The Japanese text relates to the attacker's target market, not to where your business operates. A small local business in the US, the UK or anywhere else can get hit the same way, because automated scripts ignore your language and industry and simply look for an open door.
Why can't you see the Japanese pages when you visit your own site?
The reason, put simply, is cloaking. Google's spam policies define cloaking as showing search engines different content than human visitors see. In the Japanese keyword hack, malicious code checks whether a request comes from Google or from a person and serves the spam only to Google.
The web.dev guide on how to know if your site was hacked describes the same pattern: a visitor might see a blank page while Google's crawler sees spammy words and links. So when you open the URL in your browser, you may get a 404 error or simply your homepage.
Some variants go further still. They redirect visitors who click from search results to another site, while showing the normal page to people who type the address directly. To see which redirects a suspicious URL passes through, enter it into our free redirect checker. That way you see the redirect chain that stays hidden from you in a normal visit.
How do you check for a Japanese keyword hack on your site?
First, use the three checks the web.dev guide recommends, in this order. Each one looks from a different angle, and together they make the picture clear.
- Run a site: search. In Google, type site: followed by your domain and look for URLs you do not recognize. You can also add a Japanese word to the query. If nothing appears in Google, the guide suggests trying another search engine.
- Open the Security Issues report in Search Console. If Google detected hacked content on your site, the report lists example URLs.
- Inspect a suspicious URL with the URL Inspection tool. It shows the page the way Google sees it, so cloaked content becomes visible.
If any of these checks shows Japanese pages, the attack is most likely real. Save every example URL you find in a list, because you will come back to it during cleanup and removal.
Next to each URL, note where you found it: site: search, Security Issues or URL Inspection. Also note any shared pattern, such as the same folder name or a similar file extension. That pattern makes it much easier to locate the spam files on the server.
Which symptoms point to which cause?
The table below maps the symptoms we see most often in the field to their likely source. It is not a final diagnosis; instead, it shows you where to start.
| Symptom | What it can mean | First check |
|---|---|---|
| Japanese titles in a site: search | Spam pages are in the index | List example URLs |
| URL returns 404 in your browser but has content in Google | Cloaking | Google's view in URL Inspection |
| Unknown owner in Search Console | The attacker verified your property | Users and permissions area |
| Sitemap you did not submit | Spam URLs were reported to Google | Sitemaps report |
| Clicking a search result lands on another site | Conditional redirect | Redirect chain and .htaccess |
| Spam pages return after cleanup | A backdoor or open hole remains | Admin accounts and plugins |
| Warning in the Security Issues report | Google detected the hack | Example URLs in the report |
How is the Japanese keyword hack different from other spam problems?
Spam attacks on websites look alike, but their symptoms and fixes differ, so the right diagnosis saves wasted effort. Comment spam, for example, is link heavy messages that outsiders leave in your own comment section. It needs no server access and you solve it with moderation.
The Japanese keyword hack, by contrast, needs write access to your server or database. In other words, someone got into your system. Likewise, a scraper site ranking with your copied content is an entirely different problem, because nothing on your site changed.
So ask one question: does the spam sit on my server or somewhere else? If URL Inspection shows the content under your own domain and you did not create those pages, you are facing an access breach, and the steps in this guide apply to you.
Why does a rogue Search Console owner matter so much?
The web.dev guide stresses this point above all. If Search Console lists a verified owner you do not recognize, your site has most likely been compromised. With the property verified in their own account, an attacker can submit their own sitemap, request indexing and change settings.
According to the guide, cleanup starts by revoking access for those unknown owners. However, removing the user is not enough; you also have to delete the verification token. That token is either an HTML file in your site root or a rewrite rule generated dynamically inside .htaccess. As long as the token stays in place, the attacker can verify the property again.
We walk through the general steps in how to remove an old owner or user from Search Console. If you are new to the tool, our Search Console beginner's guide helps you find the reports.
What should you secure before you clean up?
Before cleanup, secure two things: evidence and a way back. After all, deleting files in a panic makes it harder to understand how the attacker got in, and it can lead you to delete clean files by mistake.
- Take a full backup of the current state and label it "infected". You keep it for analysis, not for restoring.
- Check whether you have a clean backup from before the attack.
- Download access logs from your hosting panel, since they can reveal the entry point.
- Write down the Japanese spam URLs you found.
- Change every admin, FTP, database and hosting panel password.
You can check whether your backups are regular and restorable with our website backup strategy guide. If you have no clean backup, do not panic; cleanup is still possible, it just calls for more care.
Timing also matters. The attacker may still have open sessions, so after changing passwords, end all active sessions and switch on two step verification for admin accounts right away. That cuts off the access they already hold the moment you start cleaning.
How do you clean up the Japanese keyword hack step by step?
The sequence below combines the steps in Google's web.dev guide with our field experience. Keep the order, because index cleanup without access cleanup is wasted work.
- Remove unknown Search Console owners and delete their verification tokens.
- Fix your .htaccess files. The guide recommends replacing each .htaccess file with a clean default version. If you never configured one and no default exists, it says to save a copy offline and delete it from the server.
- Review your sitemaps. Remove suspicious links from existing sitemaps, and delete sitemaps you do not recognize that contain only spam URLs.
- Find spam files and folders. Randomly named folders, files modified during the attack window and PHP files that do not belong to your theme are prime suspects.
- Review admin accounts. Remove users you do not recognize.
- Reinstall core, theme and plugins from official sources. Remove unused plugins and themes completely.
- Close the hole. Find and fix the entry point, such as an outdated plugin, a weak password or a file manager left open.
- Check again. Repeat the site: search and the URL Inspection checks.
For WordPress specifics on file and database cleanup, see our WordPress hacked site guide.
Why is .htaccess such a common target in this attack?
.htaccess is a configuration file on Apache based servers that controls redirects and access rules. It is very attractive to attackers, because a single rule can send visitors, Google or people from a certain country to different places. Also, most admin dashboards do not show the file, so site owners may not even know it exists.
The web.dev guide notes that even the Search Console verification token can hide inside .htaccess as a dynamic rewrite rule. So during cleanup, look beyond the file in your root folder and check every .htaccess file in subfolders too. Specifically, attackers sometimes drop a separate copy in each folder.
Replacing the file with a known clean version is safer than editing it. Then add your own legitimate rules, such as HTTPS or www redirects, back to the clean file one by one. If you are not sure which rules are legitimate, ask a specialist before you add them.
Where else do Japanese keyword hack traces hide, such as the database?
Some variants of the Japanese keyword hack add spam pages as database records rather than files. In that case you will find nothing in the server folders, yet the spam pages still work. So check the database alongside the file cleanup.
On WordPress sites, start with the posts table, the options table and the users table. Posts containing Japanese characters, drafts you do not recognize, records with odd author names and long meaningless values in the options table should raise suspicion. Also look for users with the administrator role whom nobody knows.
Then, always take a separate backup before you change anything directly in the database. A wrong delete can break site settings, and that kind of mistake is usually reversible only from a backup. If you are not comfortable working in the database, handing this step to someone experienced is the safer choice.
Which entry points does the Japanese keyword hack usually use?
Put simply, cleanup without finding the entry point is half a cleanup. The entry points we see most often fall into clear patterns, and each one needs a different check.
- Outdated plugin or theme: Old versions with known flaws are easy targets for automated scanners. Review your plugin list by last update date.
- Weak or leaked password: The risk grows when an admin, FTP or hosting password is reused elsewhere.
- Abandoned installs: An old test site or backup folder you forgot in the same account can be a door into your main site.
- Admin tools left open: A file manager or database interface you never removed after setup.
- Shared access: An account that still works for someone who left the project.
So pay special attention to abandoned installs. If one hosting account holds several sites, one infected site puts the others at risk. So do not limit cleanup to the affected domain; review every site in the account.
How do you remove Japanese spam pages from Google's index?
Cleaning the site does not make the pages vanish from search results right away. Google only learns that the URLs are gone when it crawls them again. Still, a few tools can speed that up.
Google's guide to removing information explains that the Removals tool is for quick removals, that its requests last about six months and that they are temporary. A permanent removal needs the page itself to be gone or another permanent method. So use the tool to hide the most visible spam URLs quickly after cleanup; the real fix is that the pages are gone from your server.
Make sure the cleaned URLs return a 404 or 410 status code. Redirecting them to the homepage can make Google treat them as still valid. We explain the tool step by step in how to quickly remove a page from Google. For important clean pages, you can also request indexing through URL Inspection so Google sees the clean version sooner, but never send that request for spam URLs.
What should you do if 404 errors spike in Search Console after cleanup?
A rise in 404 URLs in Search Console after cleanup is normal; in fact, it is the expected outcome. After all, these are spam pages Google knew about, and they no longer exist. Over time Google crawls them, sees they are gone and drops them from the index.
The most common mistake here is "fixing" those 404s by redirecting them to the homepage or category pages. That is like trying to move the signals of spam URLs onto your clean pages, and it drags the problem out. Spam URLs should keep returning 404 or 410.
We cover how unknown spam URLs appear in the 404 report, and why you should not worry, in Search Console unknown spam URLs and 404. For the broader effect of index clutter, what index bloat is fills in the picture.
Do you need to request a review from Google?
In short, that depends on what Google did with your site. If the Security Issues report in Search Console shows a warning, you can request a review through the report once cleanup is done. Also, if the Manual Actions report lists an action, a separate reconsideration process applies.
Do not send a review request before the cleanup is truly finished. If spam pages remain or the hole is still open, Google can reject the request and the process takes longer. In your request, describe briefly and honestly what you found, what you cleaned and how you closed the hole.
The official documentation does not state a fixed review time, and Google makes the final call. We explain the general logic of manual actions in how to remove a Google manual action. If there is no warning at all, you do not need a review; cleanup and recrawling are enough.
Why do Japanese spam pages come back after cleanup?
This is the disappointment we see most often: you clean the site, and a few weeks later the Japanese pages reappear. Almost always the reason is the same: the door is still open.
Attackers often leave a backdoor after their first access. It can be an innocent looking plugin file, a hidden admin account, a scheduled task or a code fragment stored in the database. If you delete the spam pages but leave that door, an automated script rebuilds them.
So after cleanup, check these items in particular:
- All admin accounts and recently added users.
- Scheduled tasks on the server.
- Files in theme and plugin folders that are not part of the original package.
- Executable files in the uploads folder that should not be there.
- Outdated or abandoned plugins.
How does the Japanese keyword hack affect brand searches and customers?
Above all, the least visible cost of this attack is lost trust. When a potential customer searches your brand name in Google, they see fake product listings and meaningless Japanese titles under your site. Many people read that as "this site is not safe" and do not click.
In addition, some variants send visitors from search results straight to fake stores. Then your customer lands on a scam page under your name and links the experience to you. If Google detects the hack, it can also show a warning in search results; the web.dev guide lists that warning among the possible signs.
So plan customer communication during cleanup. If questions come in by phone or email, give a calm and accurate explanation: you found a security issue, you are cleaning it up and you are checking whether personal data was affected. Otherwise, vague or dramatic statements hurt trust more. If your site collects customer data, assess a possible data exposure separately; you may have legal duties, and this guide is not legal advice.
Which checks should you repeat after cleanup?
The weeks after cleanup tell you whether the attack is really over. During that time we recommend short, regular checks, so you catch a comeback early.
- Run a site: search once a week and look for new Japanese URLs.
- Check the Security Issues report and the user list in Search Console.
- Look for unknown sitemaps in the Sitemaps report.
- Review recently modified files and new folders on the server.
- Check admin accounts for new users.
These checks take minutes, yet they let you spot a returning attack within days instead of weeks. After a few clean weeks, you can move them to a monthly routine.
Example scenario: a business site with Japanese spam pages
As an example scenario, picture the corporate site of a logistics company. The owner says that searching the brand name in Google shows Japanese titles under the results. When he visits the site, however, everything looks normal.
In the first check, a site: search shows hundreds of Japanese URLs. URL Inspection reveals that these URLs serve fake product pages to Google while returning 404 in a browser, so cloaking is in play. Search Console lists a verified owner the company does not know, plus a sitemap that contains only spam URLs.
The team first takes a full backup and changes the passwords. Next it removes the rogue owner and the verification file, replaces the .htaccess files in the root and subfolders with clean versions and deletes the spam sitemap. It finds that a form plugin nobody had updated for a long time was the entry point and removes it. Finally it requests temporary removal for the most visible spam URLs and asks for a review in the Security Issues report. Over the following weeks the team repeats the site: search regularly.
What are the most common mistakes with the Japanese keyword hack?
In practice, most mistakes come from wanting quick results. These are the ones we see most often:
- Deleting only the Japanese pages and leaving the hole and the backdoor.
- Removing the rogue Search Console owner but forgetting the verification token.
- Redirecting spam URLs to the homepage.
- Restoring an infected backup and bringing the problem back.
- Treating the Removals tool as a permanent fix.
- Requesting a review before cleanup is finished.
- Giving server access to strangers who promise a "quick cleanup" for money.
Pay close attention to the last item. If you do not know who the person is and what they will do, you create a new security problem. Grant access only to people you know and who can explain their work to you.
How do you protect your site against this attack?
The Japanese keyword hack usually enters through a known weakness, so protection starts with leaving no holes. Therefore, the habits below lower the risk significantly.
First, keep core, themes and plugins up to date and remove everything you do not use. Next, use strong unique passwords and two step verification on every admin account. Also, test updates on a copy first; our companion guide on what a staging site is explains how.
On the server side, a web application firewall can block known attack patterns; we explain that layer in what ModSecurity is. Finally, make a monthly site: search and a look at the Search Console user list part of your routine. Review your sitemap as well; it should contain only pages you created.
When should you hand the cleanup to a specialist team?
Removing a rogue Search Console owner and running a site: search are tasks most site owners can handle. However, telling spam files apart on the server, finding the backdoor and cleaning hidden code from the database take experience. And if the pages come back after cleanup, the source is most likely a spot you missed.
As Talha Aslan and team, our web design services build sites on documented code that someone else can take over, and we choose a lean structure over bloated themes and plugin piles. Also, our sites launch with SEO foundations and the Search Console connection in place. No team can guarantee protection from attacks, but fewer dependencies mean fewer holes.
If your site gets hacked repeatedly or is too old to update, consider moving to a solid structure instead of patching it again. In that case, our page on corporate website design explains the scope and process. Whichever path you take, the first job never changes: clean the access first, then the index. Keep that order and your work lasts, so you do not face the same problem again a few weeks later.



