Skip to content

Hosting & care

Website hacked? What to do, step by step

Don't panic. Do these in order.

Website hacked? What to do first: take the site offline or put up a holding page, change every password, and contact your host or developer, then find how the attacker got in, clean or restore the site, and ask Google for a review in Search Console.

If personal data may have been exposed, you may need to report it to the ICO within 72 hours.

Paul Francis, Lead Developer, Foundry Agency

By Paul FrancisLead Developer · 7 min readUpdated

How do you know your website has been hacked?

The signs aren't always obvious. Look for any of these:

  • Google shows "This site may be hacked" next to your listing, or browsers show a warning.
  • Google Search Console's Security Issues report flags hacked content, malware or social engineering.
  • Pages you didn't create appear in Google, often in another language or selling something unrelated.
  • Visitors get redirected to other sites, especially on mobile or from search results.
  • New admin users, changed files or unfamiliar plugins appear.
  • Your host suspends the account, or your email starts bouncing as spam.

Website hacked: what to do in the first hour?

Work through these steps in order. Speed matters, but order matters more.

  1. Contain it. Take the site offline or show a holding page, so visitors and customers aren't harmed. Your host can help.
  2. Tell your host and your developer or care plan provider. They may see things you can't, such as server logs.
  3. Change every password from a clean device: hosting, CMS admin, database, FTP or SSH, domain registrar and the email accounts linked to them. Turn on 2-step verification wherever you can, as the NCSC advises.
  4. Remove any user accounts you don't recognise.
  5. Keep evidence before you change anything else: a copy of the hacked files and any logs.

How do you clean up a hacked website?

Once it's contained, follow these steps. Google's help for hacked sites covers the same ground in more detail.

  1. Use Search Console's Security Issues report to see what Google found, and which pages are affected.
  2. Find how the attacker got in: an outdated plugin, a weak password, a vulnerable form or a compromised account. Fix that first.
  3. Restore from a clean backup taken before the hack, if you have one. If not, remove the injected code, files and pages by hand.
  4. Update everything: the platform, plugins, themes and server software.
  5. Check the site thoroughly: every page, every form, and how it looks from Google's results on mobile.
  6. Request a review in Search Console's Security Issues report once you're sure it's clean.

Do you need to report a hacked website?

If personal data may have been accessed, such as customer details, form submissions or account logins, it may be a personal data breach. The ICO's guidance says you must report a notifiable breach within 72 hours of becoming aware of it, and tell the people affected without undue delay if there's a high risk to them. The ICO's website has a self-assessment to help you decide.

You can also report cybercrime to Action Fraud in England, Wales and Northern Ireland, or to Police Scotland in Scotland.

How do you stop it happening again?

Most hacks on small business sites come through something old: an outdated plugin, an abandoned admin account, a password reused from somewhere else. The fix is dull but effective: keep software updated, use strong unique passwords with 2-step verification, keep backups away from the live site and test them, and remove anything you don't use.

Static sites on modern hosting have far less to attack, because there's no database or admin login on the public site. That's one reason we build that way.

How does Foundry fix a hacked website?

Message us or ring 01664 901025. We reply in about 20 minutes on average in working hours, tell you what we think has happened, and agree a fixed price before we start. Then we contain it, find the way in, clean or restore the site, and handle the Search Console review.

Afterwards, a care plan keeps it updated and monitored, so it doesn't happen again.

Our averages. Not our best days.

Our averages

  • 5days

    Website, kick-off to live

  • 20mins

    Average reply timethis service

Hacked website FAQs

  • Clean the site fully, then request a review in Google Search Console's Security Issues report. Google removes the warning once it confirms the site is clean.

  • Only one taken before the hack, and only after you've found and fixed how they got in. Otherwise the attacker can walk straight back in.

  • It can, especially if spam pages were added or visitors were redirected. Cleaning up quickly and requesting a review limits the damage.

  • If personal data was exposed and there's a high risk to them, the ICO's guidance says you must tell them without undue delay. Check the ICO's breach guidance for your situation.

  • Usually, yes. We'll look first and tell you honestly if a rebuild would be quicker or safer than a clean-up.

  • Usually not personally. Automated tools scan for known weaknesses and use any site they can get into for spam, redirects or sending email.

Site hacked? Message us now. Get moving.

Tell us what you need. We'll reply within the hour (working hours), and most websites go live about 5 days after kick-off.

We'll reply within the hour (working hours).

Or email hello@foundryagency.co.uk

Analytics cookies are off until you accept. We use them to see which pages help. Cookie notice