GUIDES / WORDPRESS
How to Recover a Hacked WordPress Site
Your WordPress site is hacked. That is a bad morning, but it is not the end of the site. A hacked site can be recovered: locked down, restored clean, and protected so it does not happen again. What matters is the order you do it in, because the wrong first move can wipe the one backup that would have saved you.
This guide is the recovery in order, for business owners in the US and UK. It starts with the first hour, then the restore, then the Google warning, then the hardening that stops the next hack. The cleaning detail lives in my WordPress malware removal guide, so this guide does not repeat it.
Short answer: put the site in maintenance mode, back it up as it is, restore from a clean backup if you have one, reset every password, then ask Google to lift the warning. The rest of this guide walks through each step.
Back online, then locked down
MAINTENANCE MODE, CLEAN RESTORE, NEW KEYS
- Lock it down, back it upDONE
- Restore a clean backupDONE
- Reset passwords and keysDONE
- Clear the Google warningNEXT
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.
Google shows a warning
Visitors see a red warning page, or Search Console flags the site as hacked. That is Google telling you the site is serving something it should not.
Visitors land somewhere odd
Links on your site send people to scam pages, or new pages appear that you never wrote. A hacked site often looks normal to its owner and strange to everyone else.
Logins you do not recognise
New admin users appear, your own password stops working, or plugins and settings change on their own. If someone else has an admin account, they own the site.
Your host suspends the account
The host may shut the site down when it starts sending spam or hosting malware. That is the host protecting its other customers, and it is a sure sign the site is hacked.
THE FIRST HOUR
The First Hour: Stop the Damage
Four moves, in this order, before any cleaning starts. The goal in the first hour is not to fix the site. It is to stop the damage and protect the one copy that can save you.
Put the site in maintenance mode
Stop visitors hitting hacked pages while you work. A maintenance page is honest and quick. Do not leave the hacked site live while you decide what to do.
Back up the hacked site, as it is
Copy files and database before you touch anything. This backup is your safety net and your evidence. If a cleanup goes wrong, this copy is what you fall back on.
Tell your host what happened
Your host has seen this before. They can tell you when the hack started, whether other sites on the account are affected, and whether they have a clean backup of yours.
Do not wipe anything yet
Deleting files in a panic is the one move that cannot be undone. Malware hides inside real files, so deleting blindly can break the site and destroy the only copy of your content.
THE RECOVERY
The Recovery Checklist, in Order
Six steps, and the order is the whole trick. Restore from a backup made before the hack if you have one. It is faster and cleaner than picking malware out file by file. If there is no clean backup, clean in place instead. My malware removal guide covers the cleaning step in detail.
Whichever route you take, do not skip step one. If you restore or clean without closing the entry point, the attacker comes straight back in, and the second hack is usually worse than the first.
THE GOOGLE WARNING
Clear the Google Warning
A clean site with a warning still on it loses visitors every day. The warning comes down only when you ask Google to look again.
Check Search Console
Open the Security Issues report in Search Console. It lists the hacked URLs Google found. Fix those pages first, then check the rest of the site before you ask for a review.
Request a review
Once the site is clean and the cause is fixed, request a review in Search Console. Google rechecks the site and usually lifts the warning within a day or two.
Do not skip the review
If you skip the review request, the warning can sit there for weeks even on a clean site. Visitors keep seeing it, and clicks keep dropping, long after the hack is gone.
HARDENING
Make It Hard to Hack Twice
Recovery is not finished when the site is back online. It is finished when the next attack fails. Four habits cover most of it.
Strong passwords and 2FA
Every admin gets a long unique password and two-factor login. Most hacks start with a weak or reused password, and 2FA stops the stolen ones from working.
Updates, every week
WordPress, themes and plugins are updated on a schedule, and anything unused is deleted. An outdated plugin is the most common door a hacker walks through.
A firewall in front of the site
A web application firewall blocks the automated attacks that probe WordPress sites all day. It is cheap protection against the most common attacks.
Backups off the server
Automated backups stored away from the site, so a hack cannot take the backup with it. Test a restore once, so you know the backup actually works when you need it.
THE DECISION
Fix It Yourself or Hire Someone?
It depends on what the site does and whether you have a clean backup.
Fix it yourself when
It is a small site, you have a clean backup from before the hack, and the scan shows a simple infection. Restore the backup, change the passwords, update everything, then request the Google review. If there is no clean backup, do not guess.
Best for: small sites with a clean backup and a simple hack.
Hire someone when
It is a store, it takes bookings or payments, Google already shows a warning, or you have no clean backup. A store with stolen customer data is a legal problem, not just a technical one, and a rushed restore leaves the backdoor open.
Best for: stores, booking sites and any site Google flagged.
Rather have it handled?
Tell me what happened and I will recover the site, close the entry point and harden it, then give you a fixed quote before we start. See how I work on my WordPress development services page first.
FAQ
Hacked WordPress Site Questions, Answered
A small site with a clean backup from before the hack is usually back online the same day. Without a clean backup, cleaning takes a day or more, and the Google review request adds a day or two on top. Stores and booking sites take longer because every order and booking has to be checked.
Restore from a backup made before the hack if you have one. It is faster and cleaner than picking malware out file by file. Clean in place when there is no clean backup. Either way, find and close the entry point first, or the attacker comes straight back in.
Yes, but you have to ask. Once the site is clean and the cause is fixed, 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.
Usually yes. Posts and pages live in the database and usually survive a hack. A backup made before the hack keeps everything. The backup you take of the hacked site is for evidence and safety, not for restoring, so keep it separate from your clean backups.
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, put a firewall in front of the site, and keep automated backups off the server.
Need your site back online?
Tell me what happened and I will send a clear recovery plan, timeline and price.