A calm, step-by-step plan for when your website is hacked
If your website is hacked, work through it in order: take the site into maintenance mode or offline, change every password, save a copy of the compromised site as evidence, get it cleaned server-side by your host or a specialist, then request reviews from blocklists and Google Safe Browsing before you bring it back.
Panic is the enemy. A hack feels like an emergency, but rushing (deleting files at random, or restoring a backup that is itself infected) usually makes the cleanup longer. A methodical response gets you back faster and stops it recurring.
This page is that plan. It is honest about what a free external scan like ours can and cannot do during recovery, so you know exactly which step has to go to a server-side tool or a specialist.
First, contain it and preserve the evidence
Before you change anything, stop the harm and capture the current state. If the site is serving malware, spam or redirects, the priority is to stop visitors being affected and to stop the problem spreading.
Do these first, in this order:
- Put the site into maintenance mode, or take it offline at the host, so visitors are not served malicious content while you work.
- Take a full backup of the hacked site exactly as it is now (files plus database). This is your evidence and can help a specialist trace the entry point. Do not overwrite it later.
- Note when you first noticed, what you saw (redirects, pop-ups, a defaced page, a Safe Browsing warning) and any recent changes, such as a new plugin or a login from an unfamiliar location.
- Tell your hosting provider. Many hosts can see server-side signs you cannot, and some offer a cleanup service.
Change every password and revoke access
Assume the attacker has, or recently had, valid credentials. Changing passwords after a hack is not optional, and it has to be thorough or they simply walk back in.
Reset all of the following, ideally from a device you trust:
- Your CMS or admin logins (for example WordPress administrator accounts), and delete any admin users you do not recognise.
- Hosting control panel, SSH and SFTP or FTP accounts, and the database user password.
- Any API keys, tokens or app passwords the site uses, plus your domain registrar and DNS login.
- Turn on two-factor authentication wherever it is offered, and check no rogue scheduled tasks or email forwarding rules have been left behind.
Get the site cleaned at server level
This is the step our free scanner cannot do for you, and we will not pretend otherwise. Our check is an external, read-only scan: it reads what your site already serves publicly and reports reputation and exposure problems. It does not log in, it does not scan your server files for malware, and it cannot remove anything.
Real cleanup is a server-side job. Pick whichever route fits your situation:
- Ask your host: many will run a server-side malware scan and clean or quarantine infected files, sometimes as part of your plan.
- Use a reputable server-side scanner or security plugin that inspects the actual files and database, not just the public pages.
- Restore from a backup you are confident predates the hack, then patch the weakness that let them in, or you will be reinfected.
- For a serious or repeat compromise, bring in a specialist to find and close the entry point. A clean external scan does not prove your files are clean; only a server-side scan can confirm that.
Patch the hole and update everything
Clearing the symptoms without fixing the cause just resets the clock. Small-business sites are most often compromised through a known, already-patched weakness, such as an outdated plugin or theme, or a stolen password.
Once the files are clean, update your CMS core, all plugins and themes to current versions, and remove anything you no longer use. Outdated software is one of the most common ways in, so running less means there is less to attack. Our external scan can flag a WordPress core version that is behind the latest release, but it does not check individual plugins or themes, so update those directly.
Free, instant, no account
See your site's security grade in seconds.
Free, instant, and no account needed to see your grade.
Scan my site freePlain-English A to E grade in about 10 seconds. No account needed to see it.
Request blocklist and Safe Browsing reviews
Once the site is genuinely clean, you need to clear your name. During the hack your domain or server IP may have been added to spam and abuse blocklists, or flagged by Google Safe Browsing, and those flags do not clear themselves.
Request a review from each place that flagged you:
- Google Safe Browsing: use Google Search Console (Security Issues) to request a review once the malicious content is gone.
- Email and IP blocklists such as Spamhaus, SpamCop and Barracuda: each has its own delisting form, and they will only clear you once the abuse has actually stopped.
- Allow time. Reviews are not instant, and submitting before the site is truly clean usually means a longer wait.
Re-scan to confirm, then keep watching
This is where a fast external check earns its place. After cleanup and delisting, a free EB Security scan is a useful confirming signal: it checks your Safe Browsing reputation (when an API key is configured), checks whether your server IP still appears on common blocklists like Spamhaus, SpamCop and Barracuda, and flags any sensitive files left publicly exposed, such as a stray /.git folder, an /.env file or a leftover config backup.
Treat a clean external result as encouraging, not as proof the underlying files are spotless: only a server-side scan can tell you that. Weekly monitoring (from £9.99 a month) means that if your reputation or exposure changes again, you hear about it early rather than from an annoyed customer.
A hacked site is recoverable if you work in order: contain it, change every password, save evidence, get it cleaned server-side by your host or a specialist, patch the hole, then request Safe Browsing and blocklist reviews and re-scan to confirm. Our free external check confirms reputation and exposure, but it does not clean malware, so the cleanup step is the one job you must hand to a server-side tool or specialist.