What to Do in the First 24 Hours After Your Website Gets Hacked

Discovering that your website has been hacked is one of the most stressful experiences a Brisbane business owner can face. Customer data may be at risk, your Google ranking may be collapsing, your site visitors may be seeing spam or malware, and you don’t know where to start.

This guide gives you a clear, step-by-step action plan for the first 24 hours after a hack — what to do first, what not to do, and how to begin the recovery process.

Signs Your Website Has Been Hacked

  • Your browser shows a ‘This site has been reported as unsafe’ warning from Google
  • Your website shows content you didn’t put there — foreign language spam, casino links, pharmaceutical ads
  • You or your customers are being redirected to unfamiliar websites
  • Google Search Console has sent you a security alert
  • Your web host has suspended your account due to malicious activity
  • Your website is inexplicably slow or returning server errors
  • New admin accounts have appeared in your WordPress dashboard that you didn’t create

Hour 0–1: Immediate Containment

1. Take the Site Offline if Possible

If your site is actively distributing malware to visitors or redirecting them to harmful sites, the first priority is to stop the harm. Contact your hosting provider immediately and ask them to take the site offline or put it in maintenance mode. Many hosts have emergency security lines for exactly this situation.

2. Change All Passwords — Now

Change every password associated with your website immediately: WordPress admin password, cPanel or hosting control panel, FTP access, database passwords, and any connected service accounts (email marketing, payment gateways, Google Analytics). Use a password manager to generate strong, unique passwords for each.

3. Do Not Delete Anything Yet

The instinct is to immediately delete the infected files. Don’t. Preserving the infected state of your site allows security professionals to identify exactly what happened, how the attacker gained access, and whether any data was exfiltrated. Document the hack with screenshots before anything is removed.

Hour 1–4: Assessment and Evidence Collection

4. Check Your Backup Status

Find out when your last clean backup was taken. If your hosting provider or backup plugin has a recent backup from before the hack occurred, this is your most important recovery tool. If you don’t have backups — this is the most important lesson to take from this incident.

Not having backups before a hack is one of the most painful and avoidable situations in website management. Our guide on common causes of data loss for small businesses and how to prevent them covers backup strategy alongside the other most common causes of business data loss.

5. Check Google Search Console for Security Alerts

Log into Google Search Console and check the ‘Security and Manual Actions’ section. Google may have already detected and flagged the hack, which will be affecting your search rankings. Note any specific malware types Google has identified — this helps the cleanup process.

6. Contact Your Hosting Provider

Your hosting provider’s security team has seen every type of hack and has tools to scan server-level files that you cannot access through your website’s admin panel. They can often identify the infection vector — the way the attacker got in — which is essential for preventing re-infection after cleanup.

Hour 4–12: Cleanup and Recovery

7. Restore from a Clean Backup (If Available)

If you have a clean backup from before the hack, restoring it is usually faster and more reliable than manually cleaning infected files. After restoration, immediately change all passwords and update all software (WordPress core, themes, plugins) to their latest versions.

8. Manual Cleanup (If No Clean Backup)

Without a clean backup, manual cleanup is required. This typically involves: scanning all files with a malware scanner (Wordfence, Sucuri, or Malcare for WordPress), identifying and removing infected files, checking the database for injected content, and reinstalling WordPress core files from a clean source.

For WordPress sites specifically, our guide on how to recover a crashed WordPress site step by step covers the full recovery process in detail, including how to handle a hacked or compromised installation.

Hour 12–24: Hardening and Prevention

9. Identify and Close the Attack Vector

Before relaunching, identify how the attacker got in. Common entry points: outdated WordPress plugins or themes, weak admin passwords, compromised FTP credentials, or a vulnerable hosting environment. Fix every identified vulnerability before going back online.

10. Install or Verify Your Security Stack

After a hack, the most important thing you can do is ensure it cannot happen again. Our guide on SSL, backups, and firewalls — the basic security stack every website needs covers the essential security measures every Brisbane business website should have — including a web application firewall, malware scanning, and automated backups.

11. Notify Affected Parties if Data Was Compromised

If customer data was accessed or exfiltrated during the hack, you have legal obligations under the Australian Privacy Act 1988 and the Notifiable Data Breaches scheme. Contact the Office of the Australian Information Commissioner (OAIC) and notify affected customers. Get legal advice if you’re unsure about your obligations.

12. Submit a Google Reconsideration Request

After cleanup is complete and verified, submit a security review request through Google Search Console. Google will review your site and, if it passes, remove the ‘unsafe’ warning and restore your search rankings. This process typically takes 24–72 hours.

💻 Need Help? Talk to Cyber Fort Technologies

Cyber Fort Technologies is a Brisbane-based team specialising in web development, SEO, digital marketing, and website security. Whether you need a new website, a Google ranking strategy, or emergency data recovery — we’re here to help.

👉 Contact Cyber Fort Technologies Today — Free consultation for Brisbane businesses.

📋 Explore all our web, SEO and security services built for small and medium businesses.

Leave a Reply

Your email address will not be published. Required fields are marked *