News · 14 April 2026

A hacked site: what to do in the first hour

When a site has been compromised, the instinct is to delete what looks wrong and hope. A calmer sequence works better.

1. Keep a copy as evidence. Copy the files and the database as they are now, and store them away from the server. You will need them to find out how the attacker got in, and the clean-up can destroy that trail.

2. Limit the damage. If the site takes payments or collects personal data, consider putting up a maintenance page while you work. If visitors are being redirected, that is already harming them.

3. Change every credential. Hosting panel, FTP and SSH, database, the CMS admin users and any API keys. Do it from a device you trust. Rotate the secret keys of the application too.

4. Look for what an attacker leaves behind. New administrator accounts, recently modified files, scripts in folders that should only hold images, scheduled jobs you did not create, and redirect rules in the server configuration.

5. Do not trust a backup blindly. A backup taken after the intrusion can contain the same backdoor. Restore from a point before the first sign of the attack, then update everything.

6. Close the door that was used. An outdated plugin, a weak password or an exposed admin area. If you clean without closing it, the site is compromised again.

7. Think about personal data. If customers' personal data may have been exposed, data protection law (the GDPR in the EU, the UK GDPR in the UK) can require reporting a qualifying breach to the regulator within 72 hours of becoming aware of it. Collect the facts early and take advice.

A clean-up is finished when you can say how they got in, what was touched and what has changed to stop it happening again.

All news