Security · 4 min · Updated
Website hacked? What a small business should do in the first 24 hours
A step-by-step plan for when your business website is hacked: contain it, find the cause, restore a clean copy, fix the hole and deal with Google and customers.

If your business website has been hacked, work in this order: contain the damage (put the site into maintenance mode and change every password), find out how the attacker got in, restore a clean copy from a backup made before the attack, close the hole, then deal with the aftermath with Google, your customers and, if personal data was exposed, the regulator. Do not just delete the visible spam and carry on: most hacks leave hidden back doors, and a site cleaned that way is often reinfected within days.
Signs your site has been hacked
- Visitors are redirected to spam, gambling or fake shop sites, sometimes only on mobile or only when they arrive from Google
- Google shows "This site may be hacked" under your listing, or Chrome shows a red warning screen
- Pages you never wrote appear in Google, often in another language or selling medicines
- Admin users you did not create, or you can no longer log in
- Your host suspends the account or warns you about malware or outgoing spam
- Customers say they received strange emails from your domain
Hour 1: contain the damage
Put the site into maintenance mode, or ask your host to suspend it for now. A short outage is better than sending customers to malware. Then, from a clean device, change the passwords for the website admin accounts, hosting control panel, FTP or SFTP, database, domain registrar and the email accounts linked to them. Turn on two-factor authentication wherever it is offered and remove any user account you do not recognise.
Hours 2 to 6: work out what happened
Before you wipe anything, take a copy of the infected site and ask your host for the access logs from the days before the attack; you need them to find the way in. Write down when you first noticed the problem and what you saw. On small business sites the usual causes are an outdated plugin or theme, a weak or reused password, a pirated ("nulled") theme, or another neglected site on the same hosting account.
Hours 6 to 24: clean and restore
The safest route is usually to restore a backup from before the infection and update everything straight away. If you do not know when the attack started, or the backups are infected too, the site needs a proper clean: replace the CMS core, themes and plugins with fresh copies from official sources, check uploads and the database for injected code, and look for hidden admin users and scheduled tasks. Close the hole that let the attacker in, or you will be cleaning the site again next week.
After the clean-up
- Google: if your site was flagged, request a review in the Security issues report in Search Console once it is clean
- Email: check your domain is not on spam blacklists and that SPF, DKIM and DMARC records are set up
- Customers and staff: if form entries, accounts or orders were exposed, tell the people affected plainly what happened and what they should do
- Regulators: in the UK and EU, a personal data breach that puts people at risk must normally be reported to the data protection authority (the ICO in the UK) within 72 hours of you becoming aware of it; in the UK you can also report cybercrime to Action Fraud
- Records: keep a short note of what happened, when, and what you changed
Make the next one less likely
Keep software updated, delete plugins you do not use, give every person their own login with two-factor authentication, keep daily off-site backups and test a restore every few months, and set up uptime and security monitoring so you hear about problems before your customers do. No website can be guaranteed hack-proof, but these habits close the doors most attackers try.
How Penta helps
Penta's security and performance service covers malware investigation and clean-up, website security audits, WordPress security hardening, server security reviews and backup and recovery assessments. You receive a technical assessment, prioritised findings, improvements within the agreed scope and verification testing.
To keep it from happening again, the Care & Hosting plan (from £24 a month) includes core, plugin and framework updates, uptime and security monitoring, daily backups and restore tests. Business Care (£54 a month) adds priority support with a next-business-day response and a monthly performance and security report. If your site is under attack now, request a security and performance review and tell us the address and what you are seeing.
What this costs with Penta
No large upfront fee. Hosting, SSL, support and monthly changes are included.
Business Website
Up to 10 pages, CMS, forms, basic SEO, hosting and 5 hours of edits a month.
- Hosting, SSL & business email included
- Free .com, .net or .org domain (yearly)
- 2 months free (yearly)
Corporate Website
Up to 25 pages, custom UX, 2 languages, integrations and 10 hours of edits a month.
- Hosting, SSL & business email included
- Free .com, .net or .org domain (yearly)
- 2 months free (yearly)
E-commerce Store
Up to 250 products, payments, shipping rules, customer accounts and commerce SEO.
- Hosting, SSL & business email included
- Free .com, .net or .org domain (yearly)
- 2 months free (yearly)
Want this done for your business?
Talk to a project lead. You will get a clear plan and a fixed quote within one business day.