Skip to content

Security

What to Do If Your Website Gets Hacked

A calm, practical step-by-step guide for what to do in the first hours after discovering your website has been hacked.

Chris2 min read
website gets hacked what to do

Discovering your website has been hacked is unsettling, but panic makes things worse, not better. Here’s a calm, practical sequence of steps for the first few hours.

1. Don’t delete anything yet

The instinct to immediately delete suspicious files or content is understandable, but doing so before understanding the full scope can destroy evidence needed to properly clean the site and confirm the entry point is closed.

2. Take the site offline or into maintenance mode if possible

If you can, temporarily restrict public access while you assess the situation – this limits further damage to visitors (and to your reputation) while the issue is being resolved.

3. Change every relevant password immediately

WordPress admin accounts, hosting control panel, FTP/file access, and any connected email accounts. Assume anything that was accessible may have been compromised, and treat all of it as needing a fresh, strong password.

4. Check for a clean, recent backup

If you have a genuinely tested, recent backup from before the compromise, restoring from it is often the fastest, most reliable route back to a clean site – which is exactly why proper backups matter so much before anything goes wrong.

5. Identify how they got in, if you can

An outdated plugin, a weak password, a vulnerable theme – understanding the entry point matters, because restoring a backup without fixing the underlying weakness just invites a repeat.

6. Scan thoroughly before declaring it fixed

Malware can hide in unexpected places – theme files, the database itself, scheduled tasks. A proper malware scan, not just a visual check, is worth doing before considering the site genuinely clean.

7. Check if Google has flagged your site

Hacked sites are sometimes flagged with a “This site may be hacked” warning in search results. If this has happened, there’s a specific process through Google Search Console to request a review once the site is genuinely clean.

8. Learn from it, properly

Once resolved, put in place the protections that would have prevented it – a firewall, prompt updates, strong passwords, two-factor authentication, and tested ongoing backups – so this becomes a one-off incident, not a recurring problem.

If your site is compromised right now, ChrisXCreative can help urgently – and every site under our Security service includes the ongoing protection designed to prevent this happening in the first place.

Written by

Chris Edwards

Founder of ChrisXCreative, a Kidderminster-based web design and green hosting business, with over 20 years of hands-on web and hosting experience and a professional background in data protection and GDPR compliance.

Keep reading

Tell me what you need. You’ll have a clear quote within 24 hours.

One person from the first chat to launch and beyond — no jargon, no hard sell, and nothing starts until you’re happy with the price.