What to Do If Your Website Gets Hacked
If your website has been hacked, act quickly but calmly. First, contain the damage: change passwords for your website, hosting, domain and email, and tell your hosting provider or developer. Next, identify what happened and when. Then clean the site, ideally by restoring a clean backup taken before the hack, and update all software. Check Google Search Console for security warnings and request a review once fixed. If personal data may have been exposed, assess whether you must report it to the ICO within 72 hours.
- Contain first: change passwords and contact your host or developer immediately.
- Restoring a clean backup from before the hack is usually the fastest reliable fix.
- Update everything and close the hole, or the attacker may simply return.
- Check Google Search Console for warnings and request a review once clean.
- If personal data was exposed, you may need to report to the ICO within 72 hours.
Signs your website has been hacked
Some hacks are obvious: your homepage has been replaced, strange content appears or the site will not load. Others are subtle. You might notice unfamiliar pages in Google results, often in other languages or selling dubious products, redirects to other websites, new admin users you did not create, or a sudden drop in traffic.
Browsers or Google may show warnings that the site is dangerous or deceptive. Your hosting provider might suspend the site or email you about unusual activity. Customers may tell you something looks wrong. Take any of these signs seriously and investigate straight away.
- Defaced pages or unexpected content
- Spam pages appearing in Google results
- Redirects to unfamiliar websites
- New admin users you did not create
- Browser or Google security warnings
- Hosting suspension or warning emails
Step 1: Stay calm and contain it
Start by changing passwords for everything connected to the site: the website admin, hosting control panel, FTP or SFTP, database, domain registrar and any email accounts. Do this from a device you trust. Turn on two-factor authentication wherever possible.
Contact your hosting provider and, if you have one, your web developer. They may be able to take the site offline temporarily, put up a maintenance page or help identify the problem. Taking the site offline briefly can stop visitors being exposed to malware while you fix it.
Step 2: Work out what happened
Try to understand when the hack happened and how. Look at when files were last changed, check for new user accounts, and review recent updates or plugin installations. Your host may be able to provide server logs. Google Search Console's Security Issues report may show examples of affected pages.
Common causes include outdated plugins or themes with known vulnerabilities, weak or reused passwords, and compromised hosting accounts. Identifying the cause matters, because if you restore the site without closing the hole, the attacker may simply come back.
Step 3: Clean or restore the site
The quickest reliable fix is usually to restore a clean backup from before the hack. This is why keeping several backup versions matters; if the hack went unnoticed for a while, recent backups may also be affected. After restoring, check carefully that the malicious content has gone.
If no clean backup exists, the site needs to be cleaned manually, which can be time-consuming and technical. This often involves comparing files with clean copies, removing malicious code and checking the database. Professional help is usually worth it here, as missed traces can lead to reinfection.
- Find a backup from before the hack
- Restore it, ideally after a fresh install
- Check for leftover malicious files or users
- Remove unknown admin accounts
- Scan the site again after cleaning
Step 4: Close the hole and secure everything
Once the site is clean, update the core software, plugins and themes. Remove anything you do not use. Change all passwords again if you changed them before cleaning, in case the attacker was still in the system. Review user accounts and permissions carefully.
Add protections such as a web application firewall, login attempt limits and two-factor authentication. Consider moving to more secure hosting if the problem came from your host. Make sure automatic, off-site backups are running and that you know how to restore them.
Step 5: Tell Google and check your reputation
If Google flagged your site, go to Google Search Console, check the Security Issues report and, once the site is clean, request a review. Google will check the site and remove warnings if it is satisfied. This can take a few days.
Search for your business name and site to look for spam pages still showing in Google. You can request removal of hacked URLs through Search Console. If customers were affected, for example by being redirected to scam sites, consider letting them know what happened and what you have done.
Step 6: Your UK GDPR obligations
If the hack may have exposed personal data, such as customer names, emails, addresses or order details, you need to assess the risk. Under UK GDPR, if a personal data breach is likely to result in a risk to people's rights and freedoms, you must report it to the ICO within 72 hours of becoming aware of it.
If the risk to individuals is high, you may also need to tell the people affected. Keep a record of what happened, what data was involved and what you did, even if you decide reporting is not required. The ICO website has guidance and a self-assessment tool.
Preventing it happening again
Most hacks on small business sites exploit basic weaknesses: outdated software, weak passwords and unused plugins. Keeping on top of updates, using strong passwords with two-factor authentication and maintaining good backups prevents most future problems.
KB Studio offers free migration onto our Care Plan for existing sites. At £49 a month, it includes hosting on Cloudflare's network, daily backups, security updates and priority WhatsApp support. If your site needs rebuilding, our bespoke sites start from £995.
Common questions
Should I take my website offline after a hack?
Often, yes, temporarily. A maintenance page can protect visitors from malware or scams while you clean the site. Your hosting provider or developer can help you do this quickly.
Will restoring a backup fix a hack?
Restoring a clean backup from before the hack is usually the fastest fix, but you must also close the security hole, by updating software and changing passwords, or the attacker may return.
Do I have to report a website hack?
If personal data may have been exposed and the breach is likely to pose a risk to individuals, UK GDPR requires you to report it to the ICO within 72 hours. Keep records either way.
How long does it take Google to remove a hacked warning?
After you fix the site and request a review in Search Console, Google typically reviews it within days. Warnings are removed once Google is satisfied the site is clean.
Want this done for you?
Websites from £995, live in 7 days, and you own everything. Free quote within 24 hours.