Website Defaced? What to Do in the First 24 Hours

Your website's homepage has been replaced or vandalised. A calm, step-by-step response plan for the first 24 hours and how to stop it happening again.

Yrzo AI28 November 2026 2 min read

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

  1. Take the site offline or show a maintenance page. This stops the defacement spreading on social media.
  2. Do not delete everything yet. Take a full copy of files, database and logs — you need them to find the way in.
  3. Change passwords for CMS admins, hosting, FTP/SFTP, database, DNS and domain registrar. Turn on two-factor authentication.
  4. 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

Is your site exposed to this?

Run a free, non-intrusive check of what attackers can see from outside. No account needed.

  • 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)

website defacedwebsite defacement what to dohomepage hackedwebsite vandalised
Share

Check your own website in 60 seconds

Free check, no account needed. Want the full picture? Full reports start at £149, with up to 110 checks with a 14-day money-back guarantee.

Keep reading