Discovering something strange on your website often causes panic: pages automatically redirect to unfamiliar content, customers report warnings, or Google shows a notice that the site may be compromised. What matters is to stay calm, follow the order, and record each step. This article gives eight general steps that apply to many types of websites, especially WordPress.
Step 1: Recognize the Signs
Common signs:
- The homepage or posts contain unfamiliar content or links that you did not publish.
- Visitors are redirected to other sites, especially when opening from a phone or from search results.
- Unfamiliar admin accounts or files appear in the website folder.
- The server is unusually slow or the hosting provider sends a warning.
- A browser or Google Search Console reports that the site has a security problem.
A single sign does not necessarily mean malware, but it is enough to start checking.
Step 2: Isolate and Limit the Spread
If possible, put the website into maintenance mode or temporarily cut off public access. Notify the other administrators so no one makes overlapping fixes on their own. Before making changes, copy the current state, including files and the database, for investigation. This is an evidence copy, not one to restore from.
Step 3: Change Passwords and Revoke Access
Change the passwords of all related accounts: website admin, hosting, FTP or SSH, database, admin email, and domain account. Use long, unique passwords for each place, and enable two-factor authentication if available. Delete or lock unrecognized accounts, and revoke API keys and tokens that are no longer used.
Step 4: Contact Your Hosting Provider
The provider can give you access logs, server-level scanning tools, and the files that were changed. They also know whether other websites on the same account are affected. Ask carefully about the backup schedule and the most recent backup.
Step 5: Scan and Determine the Scope
Use a reputable malware scanning tool and compare core files with the platform's originals. For WordPress, compare core files, check the uploads folder, plugins, and themes, and look for new files or strange code. Do not just delete what you see; look for the entry point, which is often an outdated plugin, a theme of unknown origin, or a leaked password.
Step 6: Restore from a Clean Copy
The safest way is usually to restore from a backup made before the infection, then immediately update the core, plugins, and themes. If there is no clean copy, reinstall the platform and re-import content from a trusted source, checking each part carefully. After restoring, change passwords once more because the attacker may still hold the old information.
Step 7: Harden to Prevent a Repeat
Based on WordPress hardening guidance, some things to do include: update regularly, delete unused plugins and themes, limit user permissions, limit failed login attempts, disable file editing from the admin area if not needed, and back up automatically to another location. See also the monthly WordPress maintenance schedule and website uptime monitoring. The lesson on redundancy from the CrowdStrike incident of July 19, 2024 is also worth reading. If your website has a cookie banner or data collection forms, see a compliant cookie banner to be both safe and compliant.
Step 8: Notify Google If You Receive a Warning
If Google Search Console reports that the site is compromised or contains spam content, you need to clean it up and then submit a reconsideration request following Google's guidance. Google's documentation describes the process of identifying the problem, fixing it, and requesting a re-review. Processing time varies, so monitor the notifications in your account.
Summary Table
| Step | Main tasks |
|---|---|
| 1 | Recognize the signs |
| 2 | Isolate, copy the current state |
| 3 | Change passwords, revoke access |
| 4 | Contact your hosting provider |
| 5 | Scan, find the entry point |
| 6 | Restore from a clean copy |
| 7 | Harden, schedule maintenance |
| 8 | Notify Google if there is a warning |
If you need help with assessment and remediation, you can contact the server and website security team at HVSC, or see the service website management.
2026 update: Tools, the Search Console interface, and the reconsideration process may change, so follow the latest documentation from Google and WordPress. You can continue reading WordPress Website Upgrade and Security and What Website Management Includes.
FAQ
Is Deleting Unfamiliar Files Enough to Fix It?
Usually not enough. You need to find the entry point, change passwords, and update software; otherwise the website is easily reinfected.
Should You Restore from an Old Backup?
You should, if that copy predates the infection. After restoring, update immediately and change passwords.
How Long Until Google Removes the Warning?
The time varies by case. Clean up, submit a reconsideration request, and monitor notifications in Search Console.
Reference sources
- Google Search Central, Hacked sites — https://developers.google.com/search/docs/monitor-debug/security
- WordPress Developer Resources, Hardening WordPress — https://developer.wordpress.org/advanced-administration/security/hardening/
Need advice on websites, software or security?
Describe the problem, and HVSC engineers will discuss the scope and options suited to your business.
FAQ
Is Deleting Unfamiliar Files Enough to Fix It?
Usually not enough. You need to find the entry point, change passwords, and update software; otherwise the website is easily reinfected.
Should You Restore from an Old Backup?
You should, if that copy predates the infection. After restoring, update immediately and change passwords.
How Long Until Google Removes the Warning?
The time varies by case. Clean up, submit a reconsideration request, and monitor notifications in Search Console.
- SSH Basics: Logging In to a Server with a Key Instead of a Password
- Web Vitals: Reading the Report and Fixing the Right Spots
- Scammed by Bank Transfer: What to Do in the First 60 Minutes













▶
▶
▶
▶
▶