
Discovering that your website has been hacked is stressful. Typical signs include strange redirects, unknown administrator accounts, spam pages in search results, browser security warnings or a notice from your hosting provider. Stay calm and follow a clear sequence.
1. Do not panic and do not delete everything
Deleting files in a hurry can destroy evidence you need to find the cause. Take the site into maintenance mode if possible.
2. Make a backup of the current state
Save the infected files and database. It may feel odd to back up a hacked site, but it preserves the information needed for analysis and protects you if the cleaning goes wrong.
3. Change all passwords
From a clean, malware-free device, change passwords for WordPress administrators, the hosting control panel, FTP or SFTP, the database and your email. Enable two-factor authentication.
4. Scan and clean
Use a reputable security scanner to find malicious code. Replace WordPress core, themes and plugins with fresh copies from trusted sources. Remove unknown plugins, files and users. Check for hidden backdoors, because attackers often leave several ways back in.
5. Close the vulnerability
Cleaning without finding the cause leads to reinfection. Look for outdated software, weak passwords or compromised accounts, and fix them. Review server logs if available.
6. Restore trust
If your site was flagged by browsers or search engines, request a review after cleaning. Inform customers if their data may be affected, as required by the laws that apply to you.
7. Prevent the next attack
- Update everything regularly
- Use strong, unique passwords and two-factor authentication
- Keep tested offsite backups
- Use a firewall and security monitoring
Interactive checklist: tick off what you have done
- Infected state backed up
- All passwords changed, 2FA enabled
- Malware and backdoors removed
- Core, plugins and themes replaced with clean copies
- Vulnerability found and closed
- Monitoring and firewall active
If you would rather not do this alone, our website repair service finds the cause, cleans the site and hardens it against future attacks.