Dealing with malware and hacked sites
SSL & Security
Updated Jan 18, 2026
If Your Site Is Hacked
Act quickly to minimise damage and recover your site.
Signs of Compromise
- Unexpected redirects
- Strange files in your directory
- Google showing "This site may be hacked"
- Spam emails sent from your account
- New admin users you didn't create
Immediate Steps
- Change all passwords - cPanel, FTP, WordPress, database
- Scan for malware - Use cPanel Virus Scanner or Wordfence
- Check for unknown files - Look for suspicious PHP files
- Review .htaccess - Check for malicious redirects
Cleaning WordPress
- Update WordPress, themes, and plugins
- Delete unused themes and plugins
- Replace core files with fresh copies
- Scan database for injected content
- Check wp_users for unknown admins
After Cleaning
- Request review from Google Search Console
- Update all passwords again
- Install security plugin
- Set up regular backups
- Enable two-factor authentication
Prevention
- Keep everything updated
- Use strong passwords
- Regular backups
- Security monitoring
Was this article helpful?