Maintain & recover

WordPress malware removal and hacked-site recovery

A hacked WordPress recovery is complete only when the malicious persistence path is removed, the site is updated and hardened, legitimate functionality is verified, and search engines receive the correct status for injected URLs.

Discuss the requirement

Direct answer

WordPress malware recovery should restore a clean, supported production site and make hacked or injected URLs disappear permanently instead of redirecting them to unrelated pages.

Current facts

Numbers and platform rules that matter to this answer.

Search Console temporary removalAbout 6 months

Permanent removal still requires the page/content to be removed or otherwise blocked appropriately.

Source: Google
Public malware-removal example$199.99/year basic plan

A public vendor example only; not a universal project price.

Source: Sucuri

Answer scope

What this page helps you decide.

Best fit

  • Businesses with a defined production problem rather than a generic redesign request
  • Teams that need a clear scope, acceptance checks and ownership after launch
  • Existing WordPress or WooCommerce sites where the current limitation can be reproduced

What is covered

  • Current first-party platform documentation
  • A reproducible problem statement and acceptance criteria
  • Post-change verification against the customer and admin journey

What is not claimed

  • Guaranteed ranking, revenue or PageSpeed-score promises
  • Unverified claims about a plugin, host or external service
  • Changes to a production site without a rollback or acceptance plan

Problems this work addresses

  • Injected casino, pharma or foreign-language pages appear in Google
  • Unknown administrator accounts, files or scheduled tasks return after cleanup
  • Security warnings remain after the visible spam is deleted
  • Thousands of hacked URLs still appear in Search Console

What the business should gain

  • A clean code and database baseline
  • Removal of known persistence paths and vulnerable components
  • Correct 404 or 410 behavior for obsolete injected URLs
  • A clean sitemap and monitored re-crawl after recovery
01

Contain the compromise before optimizing anything else

The first task is to preserve evidence and stop continued changes. Credentials, administrator accounts, plugins, themes, uploads, scheduled tasks and hosting access may all need review depending on the compromise.

A visual cleanup is not enough if the attacker’s persistence mechanism remains active.

02

Restore supported software and remove unauthorized changes

WordPress security guidance emphasizes keeping core, plugins and themes current. Recovery should distinguish legitimate custom code from injected files and remove abandoned or vulnerable components that are no longer required.

Where a clean known-good copy exists, comparison is safer than guessing which obfuscated file belongs.

03

Return the correct status for injected URLs

Old hacked URLs should not redirect to the homepage. If the page is permanently gone, a real 404 or 410 response lets search engines process that removal. Known spam patterns can use 410 while random nonexistent paths can remain normal 404s.

Canonical tags are not a replacement for removing a hacked URL that should no longer exist.

04

Use Search Console removal only for speed, not permanence

Google’s current documentation says a Removals request is temporary, lasting about six months. The permanent fix must still remove or update the content or otherwise make the URL unavailable to Google.

After cleanup, submit only the clean canonical sitemap and monitor whether new injected paths continue to appear.

05

Verify the business journey after security changes

Hardening can break AJAX, REST requests, forms, checkout, cron or integrations if rules are applied too broadly. Recovery acceptance should therefore include important customer actions as well as a security scan.

A secure site that cannot process a lead or order is not a successful recovery.

Questions

Common questions

Should hacked URLs redirect to the homepage?

No. Unrelated redirects can confuse users and search engines. Permanently removed injected pages should normally return a genuine 404 or 410.

How long does Google Search Console removal last?

Google currently describes Removals requests as temporary, about six months. A permanent technical removal is still required.

Is deleting the visible spam enough?

No. Recovery should also address persistence, credentials, vulnerable components, database changes, scheduled tasks and the search-index cleanup path relevant to the incident.

Start a conversation

Need help with a defined website, integration or workflow problem?

Send the current setup and the result you need. I will review the problem and suggest the most practical next step.

Chat on WhatsApp