Website hacked? What to do, step by step

Security warning on a hacked small business website

Key takeaway: If your website is hacked, what to do is change every password, restore a clean backup or take the site offline, remove the malware and update everything before relaunching. Acting fast limits the damage to your visitors, your email and your search listings.

Signs your website has been hacked

  • Google or your browser shows a security warning
  • Pages redirect to spam or adult sites
  • Strange links or pages appear in search results
  • New admin users you did not create
  • Your host suspends the account for malware
  • Customers report odd emails from your domain
Clean-up check

The clean-up chart

Do these in order.

Get security help
  • NowChange passwords

    Hosting, WordPress, email and domain.

  • NowTake a copy

    Keep evidence before cleaning.

  • NextRestore or clean

    From a clean backup or by removing malware.

  • AvoidDeleting and hoping

    The hole that let them in must be closed.

Cleaning and restoring the site

StepWhat to do
1. ContainChange every password and remove unknown users
2. CopyTake a backup of the hacked site as evidence
3. RestoreRestore a clean backup from before the hack, if you have one
4. UpdateUpdate WordPress, themes and plugins, remove unused ones
5. ScanScan files and the database for leftover malware
6. ReviewRequest a review in Google Search Console if flagged
Website being cleaned and restored from backup

Stopping it happening again

After the clean-up:

  • Turn on two-step login for every admin
  • Keep software updated weekly
  • Remove plugins you do not need
  • Keep daily backups off the server
  • Use a firewall or security service

Stopping it happening again

Find out how they got in, usually an old plugin or a stolen password, and fix that first. If customer data may have been exposed, you may need to report it to the ICO within 72 hours, so get advice quickly.

Tell your customers if their data may have been affected, and warn them about any suspicious emails sent from your domain. A short, honest message protects your reputation far better than silence. Afterwards, review who has access to your website, hosting and domain, and remove anyone who no longer needs it.

Read next: Domain name expired. For the full picture, see our main guide: Website security checklist for UK small businesses.

Let us look after it

Want this handled for you? Our team offers monthly website care plans, with fixed prices agreed in writing before any work starts and a free homepage preview in 2 working days.

Quick questions

What should I do first if my website is hacked?

If your website is hacked, first change every password, remove unknown admin users and take a copy of the site before cleaning it.

Can a hacked website be fixed?

A hacked website can almost always be fixed by restoring a clean backup or removing the malware, then closing the hole that let attackers in.

Do I need to report a hacked website?

You may need to report a hacked website to the ICO within 72 hours if personal data was exposed, so get advice quickly.

Want to see your website before you pay?

Tell us about your Bolton business and we will send a free homepage design preview within 2 working days.

Get my free previewSee our services
↑