Stop the damage now
Website hacked: what to do in the first hour
Do this now
- 1
Put the site into maintenance or take it offline
Ask your host if you cannot do it yourself. It stops visitors being harmed.
- 2
Change every password
Hosting, website admin, FTP or SFTP, database and the email linked to them. Turn on multi-factor sign-in where you can.
- 3
Tell your hosting company
They can often see what changed and when, and may have clean backups.
- 4
Find a backup from before the hack
Restoring it is often quickest, but the weakness that let them in (an old plugin, theme or password) must be fixed too.
- 5
Check Google Search Console
The Security issues report shows what Google has found. Once every issue is fixed and the way in is closed, you can request a review. Wait for the result before asking again.
- 6
Decide if personal data was exposed
If customer data may have been taken and people could be harmed, report it to the ICO as soon as possible, and where feasible within 72 hours of becoming aware. Check the ICO's guidance.
Do not
- Do not just delete the visible spam and carry on: the way in is usually still open.
- Do not restore a backup without updating the software that was attacked.
- Do not pay anyone who contacts you claiming to have done it.
Then tell the tradesperson
- What platform the site runs on and who hosts it.
- When you noticed and what you saw.
- Whether you have backups and how recent they are.
Last reviewed 30 November 2026. These are general safety steps for the UK, not professional advice. If in doubt, keep yourself safe and call the emergency services.