What defacement is
Website defacement is when an attacker changes your site's visible content — replacing the homepage with a message, images or political slogans, or adding pages of their own. It is often the work of opportunistic attackers using automated tools against known weaknesses, not someone targeting you personally.
It is embarrassing, but treat it as a security incident, not just a content problem: if they could change your pages, they may also have reached data.
The first hour
- Take the site offline or show a maintenance page. This stops the defacement spreading on social media.
- Do not delete everything yet. Take a full copy of files, database and logs — you need them to find the way in.
- Change passwords for CMS admins, hosting, FTP/SFTP, database, DNS and domain registrar. Turn on two-factor authentication.
- Tell your web developer or host.
Hours 1 to 12: investigate
- check server and CMS logs around the time the change appeared
- look for new admin users, plugins, themes or files
- compare files against clean versions
- check whether customer data or admin areas were accessed
Our guide on how to know if your website has been hacked lists the most common traces.
Hours 12 to 24: restore and close the hole
- restore from a backup taken before the attack, or rebuild from fresh files
- update core, plugins, themes and server software
- remove anything unused
- check for exposed files and open admin panels
Restoring without closing the way in usually means being defaced again within days.
Do you need to report it?
If personal data may have been accessed, you may have to report to the ICO within 72 hours under UK GDPR — see data breach notification and ICO fines for small businesses. You can also report cyber crime to Action Fraud.
Communicate briefly and honestly
A short note to customers if needed: what happened, that it is fixed, whether their data was affected, and what you have done. Over-explaining technical detail rarely helps.
Prevent a repeat
Our hacked website recovery guide covers the full process. Then test the site to confirm the gap is closed — Yrzo AI can deliver a report the same business day from £149. See plans.
Related reading: Website Blacklisted? How to Check and Get Removed · ICO Fines and Data Breaches: What Small UK Businesses Need to Know · DDoS Protection for Small Business Websites (UK Guide)