GUIDES / WORDPRESS

WordPress Malware Removal: How to Clean a Hacked Website

A hacked WordPress site is an emergency, but it is a fixable one. The malware can be removed, the warning can come down, and the site can be protected so it does not happen again. What matters is doing the cleanup in the right order, and not leaving the backdoor open behind you.

This guide explains the whole process in plain words, for business owners in the US and UK whose site is showing a warning, losing traffic, or sending visitors somewhere it should not.

MALWARE CLEANUP

Clean is not finished until it is protected

BACKUP FIRST, CLEAN IN ORDER, CLOSE THE DOOR

  • Scan files and databaseDONE
  • Remove infected codeDONE
  • Reset passwords and keysDONE
  • Harden and request reviewNEXT
DON'T JUST DELETE THE SPAM, CLOSE THE BACKDOOR TOO
WORDPRESS / SECURITY

THE SIGNS

How to Tell Your Site Is Hacked

Hacked sites rarely look broken. They look normal, while quietly working for someone else. Here is what to watch for.

Signs your site is hacked

Most owners find out from someone else: a customer says the site sent them to a strange page, Google shows a warning, or the host suspends the account. Other signs are quieter. Traffic drops for no reason, new pages appear that you never wrote, or the admin dashboard feels slow and odd. One sign on its own can be a glitch. Two together means you should scan the site right away.

What the malware does

WordPress malware is rarely there to break your site. It is there to use it. It redirects your visitors to scam pages, hides spam links in your content, sends spam email from your server, or quietly steals customer details from a store checkout. The longer it sits there, the more Google and your host trust the site less, and the harder the cleanup becomes.

THE CLEANUP

How the Cleanup Works, Step by Step

Four steps, in order. The order matters more than the tools, because a cleanup done backwards leaves the attacker a way back in.

Scan and find it

The cleanup starts with a full scan of files and the database, not with deleting things. The scan finds which files are infected, how the malware got in, and whether it left a backdoor that would let it come back. Skipping this step is the most common mistake. You can delete the visible spam and still leave the door open.

Remove the infected files

Then the infected code is removed file by file, and damaged files are replaced with clean copies. Theme and plugin files are reinstalled from their real sources, never from a random download. Everything is tested as it goes, so the site still works when the cleanup ends. A backup is taken first, so nothing is lost if a file needs restoring.

Reset passwords and keys

Malware often steals logins, so every password changes after the cleanup: WordPress admins, hosting, FTP, the database, and any API keys the site uses. Salts in the config file are reset too, which logs everyone out. It feels like a chore, but if you skip it, the attacker can simply walk back in with the old password.

Harden the site

Last comes the part that stops it happening again. WordPress, themes and plugins are updated, unused plugins are deleted, login attempts are limited, two-factor login is turned on, and a firewall is put in front of the site. Then a review is requested in Google Search Console so the warning comes down. Clean is not finished until the site is also protected.

THE DECISION

Clean It Yourself or Hire Someone?

It depends on what the site does and how bad the infection is.

Clean it yourself when

It is a small brochure site, you have a recent backup, and a scan shows a simple infection in one or two files. Even then, take the backup first and change the passwords after. If the scan finds a backdoor or the database is infected, stop and get help instead of digging deeper on your own.

Best for: small sites with a simple infection and a good backup.

Hire someone when

It is a store, it takes bookings or payments, Google already shows a warning, or you have no idea how the malware got in. A store with stolen customer data is a legal problem, not just a technical one, and a rushed cleanup leaves the backdoor open. Someone who cleans hacked sites every week finds the entry point and closes it.

Best for: stores, booking sites and any site Google flagged.

Think your site is hacked?

Tell me what you are seeing on a free call and I will check the site, tell you honestly what is wrong, and give you a fixed quote before we start. See how I work on my WordPress development services page first.

FAQ

WordPress Malware Questions, Answered

The usual signs are a Google warning when people visit your site, strange pages or links you never added, sudden drops in Google traffic, your host suspending the account, or customers saying the site redirects them somewhere odd. A proper scan confirms it in minutes, so do not guess. If two of these signs show up, treat the site as hacked.

It can, if it is done carelessly. Malware often hides inside real theme and plugin files, so deleting files blindly can take the site down with it. The safe way is to back the site up first, then clean file by file and test as you go. That is why a backup before any cleanup is not optional.

Yes, but you have to ask. Once the site is clean and the cause is fixed, you request a review in Google Search Console. Google rechecks the site and usually lifts the warning within a day or two. If you skip the review request, the warning can sit there for weeks even on a clean site.

A small site with a common infection is usually cleaned within a day. Bigger sites, stores, or infections that spread into the database take longer. The review request to Google adds a day or two on top. If anyone promises a hacked store cleaned in an hour, be careful, because rushed cleanups are the ones that leave a backdoor behind.

Most hacks come through the same doors: an outdated plugin, a weak admin password, or a nulled theme. Keep WordPress, themes and plugins updated, use a strong password with two-factor login, delete what you do not use, and keep regular backups off the server. A monthly care plan covers all of this, so the site stays patched without you thinking about it.

Need your site cleaned?

Tell me what is happening and I will send a clear plan, timeline and price.