First: breathe, and don't delete anything
The signs are usually obvious once you spot them: visitors redirected to strange sites, spam pages showing up in Google, a browser warning, your host suspending the account, or admin users you didn't create. It's stressful — but it's fixable, and what you do in the first hour matters.
The biggest mistake I see is panicking and deleting files or reinstalling everything in a rush. That can destroy the clues you need to work out how the attacker got in. And if you don't close that door, they'll often come straight back.
Your first-hour plan
- Write down what you see. Take screenshots of warnings and odd pages, and note the time you first noticed.
- Change your passwords from a clean device. Hosting account, website admin, FTP/SFTP, database, domain registrar and the email linked to them. Use a computer or phone you trust.
- Turn on two-factor authentication everywhere it's offered, starting with hosting and email.
- Call your hosting company. Tell them what's happening. Many hosts can scan the account, isolate it and help with backups.
- Find your most recent clean backup. Check what backups exist and from when — ideally from before the problem started. Restoring without closing the hole that let them in usually means getting hacked again.
- Protect your visitors. If the site is sending people to scam pages, put up a maintenance page or take it offline briefly.
- Remove unknown admin users. Delete any accounts you don't recognise, and check that your own accounts still have the right access.
- Think about your customers' data. If personal or payment information could be involved, you may have legal duties to report it. Get proper advice quickly.
After the first hour: clean up properly
Once things are stable, the site needs a proper clean: find and remove the malicious code, update everything, and confirm how the attacker got in so it can be closed for good.
If Google has flagged your site as unsafe, check the Security Issues report in Google Search Console and request a review once the site is clean. Keep an eye on it for a few weeks afterwards — some infections hide and come back.
How to stop it happening again
- Keep everything updated — core software, theme and plugins. Outdated plugins are one of the most common ways in.
- Remove what you don't use — old plugins and themes are still a risk even when switched off.
- Use strong, unique passwords with a password manager, plus two-factor authentication on every admin account.
- Give people only the access they need, and remove accounts for anyone who no longer works on the site.
- Keep automatic, off-site backups — and test restoring one, so you know they actually work.
- Choose decent hosting with a firewall and malware scanning included.
- Have someone keep watch — uptime monitoring and regular security checks catch problems early.
Want to know how exposed your site is before anything goes wrong? Ask for my free growth audit. I'll check the basics — updates, backups, access and security settings — and tell you what to tighten up.
Web, SEO, AEO and AI automation specialist. I help businesses get found, chosen and paid. More about me