WordPress Website Hacked? 7 Steps to Fix It
Is your WordPress website hacked?
Maybe your homepage looks different. Maybe you see strange links, unknown users, or a warning from Google.
These signs can be scary, especially if your website is important to your business.
But don’t panic. You can take steps to protect your website and begin fixing the problem.
In this guide, you will learn seven simple steps to help you respond to a hacked WordPress website.
How Do You Know If Your WordPress Website Is Hacked?
A hacked website may show signs such as:
- Strange links appear on your pages.
- Your website sends visitors to another website.
- You see unknown administrator accounts.
- Your homepage has changed.
- Your hosting company reports malware.
- Your website becomes unusually slow.
- Google shows a security warning.
One unusual error does not always mean your website has been hacked. But if you notice several of these signs, investigate the problem quickly.
1. Contact Your Hosting Provider
If you think your website has been hacked, contact your hosting provider first.
Your hosting company may be able to check server logs, identify suspicious files, or temporarily isolate the infected website.
Tell them:
- Your website address.
- When you first noticed the problem.
- What strange activity you can see.
- Whether you can still access WordPress.
Ask whether they have detected malware or suspicious activity.
Do not hide the problem from your hosting provider. Their support team may be able to help you understand what happened.
2. Change Your WordPress Password
If someone has accessed your WordPress account, they may know your password.
Change your password as soon as you can safely access your account.
Use a strong password that is:
- Long.
- Difficult to guess.
- Different from your other passwords.
- Not based on your name or birthday.
Also change the passwords for your hosting account and the email account connected to your website.
If you cannot log in, use the official WordPress password reset guide.
Do not send your password to anyone by email or chat.
3. Check Your WordPress User Accounts
A hacker may create a new administrator account.
An administrator can make major changes to your website, so unknown accounts are important to investigate.
To check your users:
- Open your WordPress dashboard.
- Go to Users → All Users.
- Review the names and email addresses.
- Look for accounts you do not recognize.
- Ask your website team whether the account is legitimate.
If you find an account that you know is unauthorized, remove it carefully.
Before deleting a user, check whether their content needs to be reassigned to another account.
If you cannot tell whether an account is safe, ask your hosting provider or a trusted WordPress security professional.

4. Restore a Clean Backup
A backup is a saved copy of your website.
If you have a clean backup from before the attack, it may help you restore your website.
But be careful: restoring an old backup can remove new content, orders, or customer information.
Before restoring:
- Check the backup date.
- Confirm that it was created before the suspicious activity.
- Save a copy of the current website if possible.
- Ask your hosting provider whether the backup is clean.
Do not restore a backup if you believe it may already contain malware.
If you need help with backups, read our guide on how to back up your WordPress website.
5. Scan Your Website for Malware
Malware is harmful software that can damage your website or allow someone to access it.
A security scan may help find suspicious files or code.
You can use a trusted WordPress security tool to scan your website.
During the scan, look for:
- Suspicious files.
- Unexpected changes to website files.
- Unknown plugins or themes.
- Malware warnings.
- Unusual administrator accounts.
A scan can help identify problems, but it may not find every infection.
Do not delete random files just because they look unfamiliar. WordPress needs many files to work properly.
If you are unsure what a scan result means, ask a qualified professional to review it.

6. Update WordPress, Plugins, and Themes
Old software may contain security weaknesses.
After your website is cleaned and safe to update, check whether you are using current versions of:
- WordPress.
- Plugins.
- Themes.
Before updating, make a backup.
Then update your website carefully and test important pages.
If you use a plugin or theme that is no longer supported, consider replacing it with a maintained alternative.
You can also review the official WordPress security information for additional protection steps.
7. Check Google Search Console for Security Warnings
Google may warn visitors if it finds harmful content on your website.
You can check your website in Google Search Console.
Follow these steps:
- Open Google Search Console.
- Select your website property.
- Look for the Security Issues report.
- Review any warning shown there.
- Fix the problem before requesting another review.
If Google has flagged your website, cleaning the website is the most important step.
Do not request a review while the harmful content is still present.
If no security warning appears, that does not automatically prove your website is clean. Continue checking your website and hosting account.
How to Protect Your WordPress Website After a Hack
After fixing the problem, take steps to make another attack less likely.
Here are some simple habits:
- Use strong passwords.
- Keep WordPress updated.
- Remove plugins and themes you do not use.
- Use trusted plugins and themes.
- Back up your website regularly.
- Limit administrator accounts.
- Use a security plugin or service you trust.
- Protect your hosting account.
Our guide on how to protect your WordPress website from hackers explains more ways to improve website security.
Final Thoughts
A hacked WordPress website can be stressful, but taking the right steps can help you protect it.
Contact your hosting provider, secure your accounts, check your users, and look for a clean backup.
Then scan your website, update your software, and review any Google security warnings.
If the website contains customer information or the infection keeps returning, get help from a qualified WordPress security professional.
The most important thing is to fix the cause of the attack—not just hide the warning.