Website Hacked? Action Plan For Immediate Recovery
Published on 09 December 2025
How to recognize a hacked website?
A hacked website can have various symptoms:
- Strange pop-ups or redirects to other sites
- Google warning "This site may harm your computer"
- Your website shows strange content (often in other languages)
- Website loads extremely slowly
- You can no longer log in to WordPress
- Hosting provider has taken your site offline
Most important action: DON'T PANIC and follow the action plan below.
Step 1: Isolate the damage (0-15 minutes)
Immediate action:
- Take your site temporarily offline (via .htaccess or hosting panel)
- Warn your visitors via social media that you're working on a problem
- Change ALL passwords:
- WordPress admin
- FTP/SFTP
- Database
- Hosting control panel
- Email accounts
Use strong passwords: minimum 16 characters, letters, numbers and symbols.
Check Google Search Console
- Log in to Google Search Console
- Look at "Security Issues"
- Note which malware Google has found
Step 2: Backup the current situation
Important: Even a hacked site must be backed up before you start cleaning.
Via hosting control panel:
- Download all files
- Export the database
- Store separately (not on your website server)
Why? If something goes wrong during recovery, you can go back.
Step 3: Scan and identify malware
Use malware scanners:
For WordPress sites:
- Wordfence Security: Free plugin with extensive scan
- Sucuri SiteCheck: Online scanner sitecheck.sucuri.net
- iThemes Security: Free plugin with malware detection
Manual checking:
- Look for unknown files in wp-content/uploads
- Check wp-config.php for strange code
- Review recently modified files (last 7-14 days)
- Check database for spam posts or strange users
Step 4: Remove the malware
Option A: Restore from clean backup
Best option if you have a recent, clean backup:
- Remove all files from your server
- Upload a backup from before the hack
- Update WordPress, plugins and themes
- Change all passwords again
Option B: Manual cleaning
-
Restore WordPress core files:
- Download new WordPress version
- Upload and overwrite all core files
- DO NOT overwrite wp-config.php and wp-content
-
Remove suspicious files:
- Unknown .php files in root
- Strange files in uploads folder
- Suspicious plugins you don't recognize
-
Scan database:
- Remove spam posts
- Check wp_users table for unknown admins
- Review wp_options for strange settings
Option C: Professional help
If it gets too complicated:
- Sucuri Malware Removal (paid)
- Ask your hosting provider for help
- Hire a WordPress security specialist
Step 5: Secure your website
Update everything:
- WordPress to latest version
- Update or remove all plugins
- Update theme
- Update PHP version (ask hosting)
Install security plugins:
Wordfence Security (free):
- Firewall
- Malware scanner
- Login security
- Two-factor authentication
Security settings:
- Limit login attempts (max 3-5 attempts)
- Disable file editor
- Hide WordPress version
- Use SSL certificate (free via Let's Encrypt)
Step 6: Monitor and prevention
Monitor your site:
- Uptime Robot: Get alert when your site goes offline
- Wordfence: Daily scans
- Google Search Console: Check weekly for security issues
Good hosting choice:
Some hacks happen due to weak server security. Consider hosting with:
- Automatic malware scans
- Web Application Firewall (WAF)
- Daily backups
- Dedicated IP (no shared IP with spam sites)
Compare hosting providers on security features.
Make regular backups:
- Daily automatic backups (via hosting)
- Weekly manual backup download
- Test your backups regularly
Step 7: Inform Google
After cleaning:
- Log in to Google Search Console
- Go to "Security Issues"
- Click "Request Review" after fixing
- Google checks your site (can take 1-3 days)
Related articles
Website Slow - What Now? Practical Solutions
Is your website slow? Discover the most common causes and practical solutions to speed up your website again.
Cancel Hosting and Migrate: Complete Guide
Want to cancel your hosting and migrate to a new provider? Follow this step-by-step guide for a smooth website migration.
Website Downtime: What To Do When Your Site Is Offline
Your website is offline? Learn what to do during website downtime and how to get back online quickly.