Small Business Website Got Hacked? 8 Steps To Full Recovery

Your Site’s Been Hacked—Now What?

If you’re reading this, chances are your website is down, defaced, showing pop-ups, or flagged by Google. It’s a nightmare for any business—especially if you rely on that site for leads, sales, or credibility.

But here’s the good news: You’re not the first to go through this, and you can absolutely recover with the right steps.

This guide walks you through what to do immediately, what tools to use, and how to harden your site so it never happens again.

🚨 Business Website Hack Recovery Guide

Your Site’s Been Hacked—Now What?
If your website is down, defaced, showing pop-ups, or flagged by Google, this step-by-step guide will help you recover quickly and securely. Follow these 8 critical steps for full recovery.
Recovery StepImmediate Actions RequiredTools & Resources
1 Take Site Offline Temporarily disable public access to prevent further damage and protect customers from malware infection.
⚠️ DO NOT delete the site – just disable access
Methods:
  • Put up maintenance page
  • Pause hosting via provider dashboard
  • Block traffic via .htaccess or firewall rules
Hosting Control Panel Options:
• cPanel maintenance mode
• Cloudflare “Coming Soon” page
• .htaccess redirect rules
• Firewall traffic blocking

💡 Keep the site accessible to you for investigation
2 Confirm & Identify Verify the hack and document symptoms for proper remediation strategy. Check for:
  • New unauthorized admin accounts
  • Recently modified files in /wp-content/, /plugins/
  • Unexpected outbound traffic or redirect scripts
  • Google blacklist flags
Google Transparency Report Sucuri SiteCheck

File Investigation:
• FTP/SFTP file timestamps
• Server access logs
• CMS admin user lists
• Database recent changes
3 Full Security Scan Run comprehensive malware detection using both server-level and CMS-level scanning tools.
💡 Download site copy before changes for forensics
Scan Types:
  • Malicious code detection
  • File hash comparison
  • PHP shell and backdoor detection
  • Database injection scanning
Wordfence (WordPress)
ImunifyAV (cPanel)
Sucuri Scanner
MalCare

Additional Scans:
• Server-side antivirus
• Custom malware signatures
• Deep file analysis
4 Clean Up or Restore Remove malicious content and restore clean state based on infection scope and available backups. Options:
  • Roll back to clean backup (prior to infection)
  • Manually remove infected files and scripts
  • Delete unused plugins/themes
  • Reinstall core CMS files
💡 Check for fake admin users and cron jobs
Cleanup Resources:
• Recent clean backups
• Fresh CMS downloads
• Plugin/theme repositories
• Database restoration tools

Manual Cleanup:
• Text editors for code review
• FTP clients for file management
• Database admin tools
• Cron job managers
5 Change All Credentials Update every password and key that could have been compromised during the breach.
🔑 Critical: Change ALL passwords, not just admin
Update:
  • CMS admin accounts
  • Hosting and cPanel credentials
  • FTP/SFTP accounts
  • Database users
  • Email accounts tied to recovery
  • API keys (Stripe, Mailchimp, etc.)
Password Management:
• Strong password generators
• Multi-factor authentication setup
• API key regeneration portals

Account Types to Update:
• Web hosting control panel
• Domain registrar
• CDN services (Cloudflare)
• Email hosting
• Third-party integrations
• Social media connections
6 Harden Website Security Close security gaps and implement protective measures to prevent future attacks. Essential Hardening:
  • Enable Web Application Firewall (WAF)
  • Install security headers (CSP, X-XSS-Protection)
  • Disable file editing in CMS
  • Limit login attempts and enforce strong passwords
  • Install security plugin with file monitoring
  • Schedule weekly software updates
SecurityHeaders.com
WPScan (WordPress)

Security Enhancements:
• WAF services (Cloudflare, Sucuri)
• Security plugins (Wordfence, iThemes)
• SSL certificate installation
• File permission adjustments
• Regular backup automation
• Update management systems
7 User Notification Transparently communicate with affected users if customer data may have been exposed. Required Actions:
  • Notify users transparently about the breach
  • Reset any potentially exposed passwords
  • Follow legal requirements (GDPR, state laws)
  • Provide clear next steps for users
💡 Reputation is salvaged with honesty, not hiding
Communication Channels:
• Email notification systems
• Website banner announcements
• Social media updates
• Customer support scripts

Legal Compliance:
• GDPR notification requirements
• State breach notification laws
• Industry-specific regulations
• Documentation for authorities
8 Learn & Improve Analyze what went wrong and implement long-term security improvements to prevent future incidents. Key Questions:
  • Was the site regularly updated?
  • Were backups in place and tested?
  • Was MFA enabled on critical accounts?
  • Did we have an incident response plan?
Implement:
  • Monthly security audits
  • Automated backup testing
  • Staff security training
  • Managed security plan consideration
Long-term Security:
• Security audit checklists
• Backup testing procedures
• Incident response templates
• Staff training programs

Ongoing Monitoring:
• Website uptime monitoring
• Security scanning schedules
• Performance monitoring
• Regular penetration testing

Professional Security Consultation

🎯 Common Website Attack Types

Malware Injection: Hidden code that redirects users, spreads viruses, or logs keystrokes.
Website Defacement: Visible altering of homepage with threatening or political messages.
SEO Spam (Pharma Hacks): Site starts ranking for unrelated, shady keywords.
Phishing Pages: Attackers create lookalike pages to steal user credentials.
Credential Stuffing: Admin access gained by reusing leaked passwords.
Backdoor Installation: Hidden shells in plugins/themes for persistent access.

Scan Your Website For Vulnerabilities

Get instant security insights in seconds

🔍 Start Free Scan

Step 1: Take the Site Offline (Without Deleting It)

Temporarily disable public access—especially if the site is serving malware or redirecting visitors. You can:

  • Put up a maintenance page
  • Pause hosting via your provider’s dashboard
  • Block traffic via .htaccess or firewall rules

Why: This prevents more damage and keeps your customers from getting infected.

Step 2: Confirm the Hack and Identify the Symptoms

Check for:

  • New admin accounts in WordPress, Joomla, etc.
  • Files modified recently (especially in /wp-content/, /plugins/, etc.)
  • Unexpected outbound traffic or redirect scripts
  • Blacklist flags from Google Transparency Report

Recommended Tool:

Step 3: Run a Full Scan Using These Tools

Run both server-level and CMS-level scans. Here are a few go-to tools:

  • Wordfence (for WordPress): Scans for malicious code and compares file hashes.
  • ImunifyAV (cPanel users): Detects injected PHP shells and backdoors.
  • Sucuri or MalCare (Managed plugins): Great for ongoing protection and cleanup.

Optional: Download a copy of your site before making changes, in case you need to show forensics or rollback to a different restore point.

Step 4: Clean Up or Roll Back

Depending on the scope of the hack, you can:

  • Roll back to a clean backup (prior to infection date)
  • Manually remove infected files and malicious scripts
  • Delete unused plugins or themes
  • Reinstall core CMS files (like WordPress core)

Pro Tip: Hackers often create fake admin users or cron jobs—check those too.

Step 5: Change All Credentials

Don’t skip this! Change all passwords and keys:

  • CMS admin accounts
  • Hosting and cPanel credentials
  • FTP/SFTP accounts
  • Database users
  • Email accounts tied to site recovery

Also update any API keys (like Stripe, Mailchimp) that may have been exposed.

Step 6: Harden the Website

Post-cleanup, you need to close the doors the hacker used:

  • Enable a web application firewall (WAF)
  • Install security headers (Content-Security-Policy, X-XSS-Protection)
  • Disable file editing in CMS
  • Limit login attempts and enforce strong passwords
  • Use a security plugin with file integrity monitoring
  • Keep software and plugins updated weekly

Bonus Tools:

Step 7: Notify Affected Users (If Necessary)

If customer data may have been exposed:

  • Notify users transparently
  • Reset any exposed passwords
  • Follow legal requirements (like GDPR or state breach laws)

Don’t try to hide it—reputation is salvaged with honesty.

Step 8: Learn From It

Ask yourself:

  • Was the site regularly updated?
  • Were backups in place?
  • Was MFA enabled on hosting and admin logins?
  • Did I have an incident response plan?

If not:

  • Put one in place now.
  • Schedule monthly audits.
  • Consider a managed security plan.

Website Exploits Explained

Website hacks come in many forms, and knowing the type of attack can help you choose the right response strategy. Some of the most common include:

  • Malware injection: Hidden code that redirects users, spreads viruses, or logs keystrokes.
  • Defacement: The visible altering of your homepage or pages with threatening or political messages.
  • SEO spam (pharma hacks): Your site starts ranking for unrelated, shady keywords.
  • Phishing: Attackers create lookalike pages on your domain to trick users into giving up personal info.
  • Credential stuffing: Hackers gain admin access by reusing passwords leaked from other breaches.
  • File injection or backdoors: Shells placed inside plugins or themes that allow persistent access.

Each of these threats requires a specific approach to scan, clean, and harden your site.

Final Thoughts

Getting hacked feels personal—but it’s not the end. Most sites recover fully if the response is quick, clean, and strategic.

As a certified ethical hacker, I’ve helped dozens of businesses recover from website intrusions—and each one came out more secure than before.

Need a hand cleaning up or locking things down? Request a consultation with Forestal Security.

FAQs

How do I know if my business website was hacked?

Signs include defaced pages, slow loading, random redirects, admin lockouts, spammy pop-ups, or blacklisting warnings from browsers or search engines.

What is the first thing I should do after a website hack?

Take the site offline immediately to prevent further damage. Then scan for malware, check file changes, and preserve any logs or backups before making changes.

Can I fix a hacked website myself or do I need help?

If you’re technically skilled and the hack is minor, cleanup may be possible. But for major infections or ecommerce sites, it’s safer to work with a professional.

Will Google or my hosting provider block my site after a hack?

Yes. If malicious code is detected, Google will blacklist your site, and some hosts may suspend your account until it’s cleaned.

How long does it take to recover a hacked website?

Depending on the damage, cleanup can take anywhere from a few hours to several days. Recovery time improves with recent backups and a clear remediation plan.

How can I make sure this doesn’t happen again?

Use a web application firewall (WAF), update all software regularly, implement strong passwords, enable MFA, and conduct monthly security audits.

Picture of Edith Forestal

Edith Forestal

Edith is a Certified Ethical Hacker with a Master’s degree in Cybersecurity and Information Assurance. He brings deep experience in IT security, Microsoft 365 environments, vulnerability management, risk assessments, and website defense. Learn About Me →

Share This :