Discovering your website has been hacked is stressful, but panicking rarely helps and can make things worse (deleting files without a backup, for instance). Here's exactly what to do, in order.
1. Confirm it's actually a hack
Strange redirects, unfamiliar admin users, spam content injected into pages, or a "this site may be hacked" warning in Google Search Console are the clearest signs. A slow site or a single error page is more often a plugin conflict or server issue — worth ruling out first.
2. Don't delete anything yet
Your instinct might be to start deleting suspicious files. Resist it. Take a full backup of the site exactly as it currently is first — even compromised, this gives you (or whoever you call in) something to investigate and roll back from if a fix goes wrong.
3. Change your passwords — everywhere
WordPress admin, hosting control panel, FTP/SFTP, and the email address linked to your hosting account. If you reused a password anywhere else, change that too. Attackers who got in once often leave themselves a way back in via a second account.
4. Take the site offline or into maintenance mode if you can
This limits further damage (spam links hurting your SEO, malware being served to visitors) while it's being cleaned. If you can't do this yourself safely, this is exactly the point to bring in help rather than experiment on a live site.
5. Get the malicious code removed properly
Removing the obvious symptom (a spam page, a redirect script) without finding how the attacker got in means they'll likely be back within days. A proper clean-up identifies and closes the actual entry point — usually an outdated plugin, a weak password, or an old unused theme.
6. Request a review once it's clean
If Google has flagged your site, use Search Console to request a malware review once you're confident it's genuinely clean. This can take a few days to clear.
7. Fix the root cause so it doesn't happen again
A hack is almost always a symptom of missing maintenance — out-of-date software, no firewall, no monitoring. Getting cleaned up without addressing that is just delaying a repeat.
If you need this done today
We run emergency website rescue for exactly this — no ongoing plan required, billed at a straightforward £29/hour, and most sites are clean within a day. As a UK-based team working with clients across the country, we're never far away when a site goes down.