How to Remove the Japanese SEO Spam Hack from WordPress in Malaysia
A technical guide to cleaning thousands of fake Japanese indexing pages in Google Search Console, inspecting .htaccess, and sitemap cleanup.
The Japanese SEO spam hack is one of the most common and damaging malware infections affecting Malaysian WordPress sites. It silently creates thousands of hidden pages with Japanese characters on your domain, hijacking your search rankings to sell counterfeit goods.
1. Identify the Scope in Google Search Console
Before deleting anything, you must understand the infection's scale. Open Google Search Console, navigate to Pages > Not Indexed (or Indexed), and look for URLs resembling /?p=123&lang=ja or /brand/fake-bags/.
2. Clean the .htaccess File
The malware often hijacks your Apache routing to serve spam pages to Googlebot while showing the normal site to humans. Connect via SSH and inspect the .htaccess:
cat .htaccess
If you see strange RewriteRule conditions checking for HTTP_USER_AGENT (like Googlebot), replace the file with the default WordPress routing rules.
3. Hunt for Rogue PHP Files
Hackers usually drop backdoors in wp-content/uploads/ or disguised as core files. Use SSH to find recently modified PHP files:
find . -type f -name "*.php" -mtime -14
Look for heavily obfuscated code using eval(base64_decode(...)). Delete these rogue files immediately.
4. Sitemap and Cache Cleanup
Once the malware is removed, you must rebuild your XML sitemaps to flush out the injected URLs. Delete your caching plugin's cache, regenerate the sitemaps, and resubmit them via Google Search Console. Use the "Removals" tool for the highest-ranking spam URLs.
Need Expert Help?
Don't let a hack destroy your SEO and reputation. JagaWeb has recovered compromised platforms for businesses like TechFix Malaysia and UrusHQ. Get our RM5,000 Ownership & Access Review to secure your infrastructure, or subscribe to our RM450/month Care Plan for 24/7 proactive threat monitoring. Contact us today.
Ready to verify who owns your website?
Replace uncertainty with a decision-ready ownership and access report. The fixed Ownership & Access Review is RM1,500 before SST and includes a 30-day action plan.