The WordPress Pharma Hack (also called Japanese keyword hack or SEO spam hack) injects spam content into your WordPress pages that only Google can see — flooding search results with pharmaceutical or other spam keywords while showing normal content to visitors.
Most common causes we diagnose:
Systematic, fast, and safe process:
Review Security Issues report and Manual Actions in GSC to understand the scope of the spam injection and which pages are affected.
Search wp_posts and wp_options for pharmaceutical keywords, hidden links, and cloaked content using WP-CLI search-replace.
Remove all injected content, close entry points, update all credentials, and submit a Security Review Request in GSC.
Our WordPress expert responds in minutes.
Pharma hacks use cloaking — they show different content to Googlebot than to regular visitors. This makes them hard to detect without checking Google Search Console or viewing your site as Googlebot.
Yes — after full cleanup and submitting a reconsideration request, Google reviews the site and removes spam content from search results within 1-4 weeks.
Because the most common payload promotes pharmaceutical products (Viagra, Cialis) — the attackers monetize via affiliate networks for adult/pharma products. Same hack technique exists for casino, replica, and other spam niches.
Google's crawler indexes the spam keywords your hacked site is now serving. They flag this in Search Console as 'Hacked Content' or 'Pure Spam'. We monitor Search Console daily so clients catch this within hours, not weeks.
Yes — exactly the typical pattern. The hack uses 'cloaking' to show spam content only to Googlebot, while real visitors see the normal site. We test with curl pretending to be Googlebot to detect this.
The hack injects fake pages into the database (or generates them dynamically) and lists them in the sitemap so Google indexes them. We rebuild the sitemap from clean data and remove the injected URLs.
Yes. By creating thousands of spam pages targeting pharma keywords, the hack uses your domain authority to rank those spam pages — diverting your crawl budget and harming your real pages' rankings.
Possibly. Google may apply a manual penalty ('Pure Spam' action) that removes most of your indexed pages. Recovery requires full cleanup AND a Reconsideration Request explaining the cleanup.
After cleanup and reconsideration request: 1-4 weeks for the manual action to lift. Re-indexing of legitimate pages: 2-6 weeks. We provide ongoing monitoring during recovery.
No — the malware will regenerate them within hours. The spam pages are a symptom; the root cause is the backdoor that creates them. We must close the backdoor first, then clean the spam.
The hack also installs a mailer that sends pharma spam from your server. Your IP and domain reputation get blacklisted. We remove the mailer, request IP delisting from blacklists, and configure SPF/DKIM/DMARC.
Yes — if the backdoor remains. Updates fix vulnerabilities going forward, but don't remove already-installed backdoors. Manual file inspection and database cleanup are required after updates.
Other CMSes have similar hacks (Joomla pharma, Drupal pharma). The vulnerability is usually in plugins/extensions, not core WordPress. Hardening practices (updates, strong passwords, WAF) matter more than CMS choice.
Yes. We scan for known obfuscation patterns: long base64_decode strings, gzinflate(eval()), variable-named function calls, and dynamically constructed strings. Our patterns catch even sophisticated obfuscation.
We set up: daily file integrity monitoring (alerts on file changes), Google Search Console monitoring, server log analysis for suspicious POST requests, and outbound email monitoring to catch any spam attempts immediately.
WordPress site hacked? We clean it, close the backdoor, and secure it — same day.
Response in minutes. No data loss. No diagnosis charge.
wpfix.blimx.com