7 Signs Your WordPress Site Has Been Hacked (and What to Do Next)
Some site owners first notice a possible compromise through a customer report, a browser warning or an unusual search result. The timing and impact vary depending on the type of malware.
Knowing the warning signs helps you act sooner. Here are seven common ones, what to do immediately, and how to reduce the chance of it happening again.
Seven signs of a hacked WordPress site
1. Unexpected redirects
Visitors click your link and land on an unrelated, spammy or suspicious website. Sometimes this only happens on mobile devices, or only to visitors arriving from search engines, which makes it harder for logged-in admins to spot.
2. Browser or search engine warnings
Your site displays a “Deceptive site ahead” or “This site may be hacked” warning, or Google flags it in search results. This directly scares off visitors and harms search visibility.
3. Admin users you do not recognise
Check your WordPress Users list. Unknown administrator accounts are a classic sign that someone has gained unauthorised access and created a persistent login.
4. Spam pages or links you did not create
You may find unauthorised pages selling unrelated products, hidden spam links injected into your footer, or search results for your domain showing strange titles in another language.
5. A sudden drop in speed or traffic
Malicious scripts can consume server CPU and bandwidth, slowing your site dramatically. An unexplained drop in performance or organic traffic warrants immediate investigation.
6. Your host suspends the site or sends malware alerts
Hosting providers routinely scan accounts for malware and outbound spam, and may temporarily suspend your site to protect their network.
7. Changed files, odd emails or locked-out admins
You cannot log in with your usual password, core or theme files show unexpected modification timestamps, or customers report phishing emails appearing to come from your domain.
What to do first
- Stay calm and do not delete files blindly. Deleting logs or modified files prematurely can destroy forensic evidence or break the site further.
- Contact your host or a security professional immediately to isolate the site (or place it into maintenance mode if visitors are being redirected to harmful pages) and preserve a snapshot for investigation.
- Locate your last known clean backup, ensuring it predates the compromise.
- After containment, reset all passwords (WordPress admins, hosting control panel, FTP/SFTP, database and email) from a clean, malware-free device.
- Audit unknown admin accounts and active sessions with your host or security specialist before removing them, so evidence is preserved.
Cleaning up
A thorough cleanup involves more than running a single automated scanner plugin. Hidden backdoors often remain in uploads folders or database options and allow attackers to return. A complete remediation usually includes:
- Scanning all files and database tables for injected scripts and backdoors.
- Replacing WordPress core files, themes and plugins with fresh, verified copies from official sources.
- Removing unused, abandoned or unverified plugins and themes.
- Identifying and patching the entry vulnerability (such as an outdated plugin or compromised credentials).
- Requesting a security review in Google Search Console once the site is verified clean.
If you are not confident performing this process, get professional help. A partial cleanup frequently leads to rapid reinfection.
How to prevent it happening again
- Keep WordPress core, themes and plugins updated promptly.
- Delete plugins and themes you no longer use.
- Use strong, unique passwords and follow the principle of least privilege for user roles.
- Enable two-factor authentication (2FA) for all administrator accounts.
- Maintain automated, tested off-site backups.
- Use a reputable host and avoid nulled or pirated themes and plugins, which frequently contain hidden malware.
- Monitor uptime, file integrity and security alerts continuously so issues surface quickly.
Cleanup support
Malware cleanup and security hardening remove active infections and close common entry points. While no security measure can guarantee a site will never be targeted again, regular monitoring and updates greatly reduce the risk. Agencies can also hand us compromised client sites behind the scenes under their own brand.