A Hacked Website Clean-up Checklist
Order matters in a clean-up. If you bring the site back before you've closed the way in, the hacker can simply repeat the job. This checklist follows Google's recovery guides, and each step has its own page where there's more to say.
Stop the harm and get help
- Take the site offline so it no longer serves content to users. Expect to bring it back for short test periods later.1
- Tell your host the site has been compromised.2
- Decide whether you can do the work yourself. Google suggests a qualified professional if you don't feel equipped.2
The first-hour page, what to do right away, goes through this stage in more detail.
Find the damage and the way in
Make notes as you go: which files were changed, which accounts were added, which pages are spam. You'll need them in the clean-up stage, and Google's guide builds on those notes.3
Then look for the weakness that let the hacker in. Google's guide lists fixing the root cause vulnerability as its own action.3 Without it, a clean site can be hacked again.
Where to look is covered on the malware search page.
Restore or clean
Which route you take depends on your backup. Google describes three cases: a clean and current backup, a clean but outdated one, and none at all. In every case, first check that the backup was created before the site was hacked.3
The backup page explains each case.
Update and tidy up
Install the latest, most secure version of your software.3 That means the content management system, plugins and themes, and the server's operating system if you run it yourself. Consider removing plugins or other software the site no longer uses.3
Change passwords once more
Google asks you to change passwords early, and then again after cleaning. The second change covers every account tied to the site, such as FTP, database, administrator and CMS logins.3
The full list of logins is on the passwords page.
Bring the site back and check it
Before you ask Google to review anything, Google says to confirm that you've done all of these.4
- Cleaned your site of the hacker's vandalism.
- Corrected the vulnerability.
- Brought your clean site back online.
Don't rush this. Asking for a review while the problem still exists only makes the warning stay longer.4
If there's a Google warning to clear, what the warnings mean shows where it comes from and how the review works.
Plan for next time
The job isn't done when the warning goes. Google's guide ends its clean-up actions with planning to keep your site secure.3 It also lists removing applications or plugins you don't use, since each one is more code that can have a weakness.3
Write down what you did, in order, while it's fresh. If the hack ever returns, that record saves hours. It also gives your host or a professional something to start from.
A calm pace helps here. A site can look fine on the surface: with cloaking, hacked content can look fine to you while Google still sees spammy words and links.5
Where the facts come from
- Quarantine your site, web.dev (Google)
- Build a support team, web.dev (Google)
- Clean and maintain your site, web.dev (Google)
- Request a review, web.dev (Google)
- How do I know if my site was hacked?, web.dev (Google)