
If your website has been hacked, act in this order: keep evidence, lock down every login, tell your host, clean or restore from a trustworthy backup, then close the hole that let the attacker in. Your hosting plan decides how much of that you do alone. Backups, isolation between accounts and support response all differ from plan to plan, so the choice of host is part of the fix. Our hosting comparison pages show those differences side by side.
TL;DR
- Do not rush into deleting things. Record symptoms, take a snapshot and then contain the problem.
- Change passwords for hosting, cPanel or Plesk, FTP, database, CMS admin and email, and turn on multi-factor authentication.
- Contact your host early: on shared hosting, other sites on the same account or server may be affected.
- Restore only from a backup you have reason to trust, and find the entry point first or the hack can return.
- If personal data may be exposed, UK organisations generally have 72 hours to report to the ICO.
Table of Contents
- Signs your website has been hacked
- The first hour: contain it without making it worse
- Contacting your host
- Cleaning or restoring
- If personal data may be exposed
- Preventing a repeat
- How your hosting plan shapes recovery
- Where Compare UK Hosting fits
- Our view
- FAQ
- Sources
Signs your website has been hacked
The NCSC lists unusual account activity, unexpected redirects, strange emails sent from your domain, locked-out users and unauthorised payments as possible signs of an incident. WordPress.org adds blacklisting, host suspension, malware flags, unknown admin users and visible defacement.
One symptom alone is not proof. A white screen after an update or a sudden slowdown can be a software or hosting fault rather than an attack, so look for several indicators together. If the problem looks like an outage, our guide to WordPress site downtime helps you find the cause. If browsers show a warning, see our page on the “not secure” warning.
Quick checks that take minutes:
- Search Google for your own domain and look for odd titles or foreign-language pages.
- Log in to your CMS and check the user list for admins you do not recognise.
- Look at your host’s file manager for recently changed files you did not edit.
- Check whether your host has suspended the account or sent a malware notice.
The first hour: contain it without making it worse
The NCSC describes response as triage, containment, analysis, remediation and recovery, and containment should start as soon as possible. It also warns that an ill-judged action can worsen damage or push an attacker to dig in further, so work through the steps rather than deleting at random.

1. Write down what you see
Note the symptoms, the time and timezone you noticed them and any recent changes such as plugin installs or new users. WordPress.org also advises taking a snapshot before cleaning, even if that copy is infected. It is your evidence and your fallback.
2. Preserve the logs
Web, authentication and host logs show how the attacker got in. The NCSC says to preserve and consult these logs during analysis. Download them from your control panel before anything rotates them out.
3. Lock the doors
Change the passwords for:
- your hosting account and control panel
- FTP or SFTP and SSH users
- the database
- CMS admin accounts
- the email address tied to the hosting account
Use a different strong password for each, and remove accounts that are no longer needed. The NCSC’s Cyber Essentials requirements say multi-factor authentication should protect administrative and internet-accessible accounts, and that access should be limited to what each person’s role needs.
4. Take the site offline if it is harming visitors
If the site serves malware or redirects customers, put up a maintenance page or ask your host to suspend public access while you clean. Controlled communication matters too: the NCSC advises coordinated channels with key stakeholders, so decide who tells customers what.
Contacting your host
The NCSC advises contacting external IT providers, including hosts, and checking escalation routes, support levels and what data they need. On shared hosting this matters more, because a compromise can affect more than one site and the host can help tell a hack from an outage.
Give support what they need to act quickly. Gravity Forms recommends including:
- a clear description of the symptoms and when you found them, with timezone
- exact warnings or screenshots
- recent changes to the site
- who has access and their permissions
- anything the host has already done
Ask how the site was compromised and for the malicious content to be removed. Cloudflare’s documentation suggests exactly that, then requesting a review once search-engine warnings are cleared.
Cleaning or restoring
The NCSC says investigation should establish how the attacker entered, what they did and whether access persists. Restoring before the attacker is evicted risks the incident restarting.
Remediation can include resetting credentials, blocking remote access, removing malicious files, cleaning or rebuilding systems and verifying success. Only clean data should go back.
| Route | Best when | What to check |
|---|---|---|
| Restore a backup | You have a copy from before the compromise | The backup is complete and uncompromised |
| Clean in place | Only a few files are affected and you know the entry point | Every changed file, user and scheduled task |
| Rebuild fresh | Damage is wide or you cannot trust the files | Reinstall core software from official sources and move content across carefully |
On backups, the NCSC says to assess availability, completeness and trustworthiness and to assume attackers may have targeted them. Check for rogue admin users, unfamiliar scheduled tasks and modified core files before you go live again.
If personal data may be exposed
If customer names, emails or order details could have been accessed, the ICO says a UK organisation must report a personal-data breach within 72 hours of becoming aware, unless it is unlikely to risk people’s rights and freedoms. Reports can be made in instalments as facts emerge. This applies to small businesses with customer data, such as a shop or booking site. For a live attack on an organisation, the NCSC lists 0300 123 2040, available 24/7, and directs you to Report Fraud or Police Scotland for law-enforcement reporting.
Preventing a repeat
Most repeat hacks come from the original hole staying open. Close it with these habits:
- Keep CMS, themes and plugins updated. Cloudflare recommends current software, protected admin sign-in and maintained backups.
- Use multi-factor authentication on hosting, CMS and email.
- Run daily or weekly backups and test that they restore, as the NCSC recommends.
- Keep your host’s contact details and escalation route written down where you can find them.
- Remove old users and unused plugins.
How your hosting plan shapes recovery
A hack is easier to survive when the plan gives you tested backups, separation from other accounts and support that answers quickly. Shared plans keep costs low for small sites, and our shared hosting rankings compare them on price, renewals and support. If your site outgrows that, shared hosting versus VPS explains what more isolation looks like. WordPress owners can compare plans built for the platform on our WordPress hosting page, and those who want the host to carry more maintenance can look at managed hosting.
To see how a provider performs before you commit, use our reliability score tool.

Where Compare UK Hosting fits
We compare UK hosting providers and domain registrars on price, renewal costs, performance and support, with free calculators that show what a plan really costs after the introductory period. If a hack has made you reconsider your host, our hosting recommendation tool narrows plans down to your needs, and you can browse every category, from shared to WooCommerce, on our hosting comparison page.

We earn a commission if you buy through links on our site, which does not change the comparison data we publish.
Our view
We think a hack is the moment many owners discover what their plan actually includes. Backups, support access and account isolation are easy to ignore at checkout and hard to improvise at 2am.
That is why we compare hosts on support and reliability as well as headline price, and why our tools show renewal costs up front. A plan that costs slightly more but restores cleanly and answers quickly is often the cheaper choice once a compromise happens.
Our advice: choose a plan with regular backups, keep a clean copy off the server, and use our recommendation tool so the plan fits your site.
Dylan
FAQ
How do I know if my website has been hacked or is just broken?
Look for several signs together: unexpected redirects, unknown admin users, malware flags, host suspension or changed files. A single symptom such as slowness can be a fault. Your host can help tell the difference.
Should I restore a backup straight away?
Not before you have found how the attacker got in. The NCSC warns that recovering before eviction risks the incident restarting, and backups should be checked for trustworthiness first.
Do I have to tell anyone if my site is hacked?
If personal data may be at risk, UK organisations must report to the ICO within 72 hours of becoming aware, unless the risk to individuals is unlikely. Tell your host and customers as well when their data or service is affected.
Can a hosting plan make hacks less likely?
A good plan helps with backups, support and separation between accounts, but you still need updates, strong passwords and multi-factor authentication. Our comparison pages show what each type of plan offers.
Sources
- NCSC: What to do when cyber attacks disrupt your organisation
- NCSC: Incident management, technical response
- NCSC: 10 Steps, incident management
- NCSC: Disruptive cyber attacks, recovery
- NCSC: Response and Recovery Guide
- NCSC: Cyber Essentials requirements v3.2
- ICO: Responding to a cybersecurity incident
- WordPress.org: My site was hacked
- Gravity Forms: If your site has been compromised
- Cloudflare: Recovering from a hacked site


