My WordPress site keeps getting hacked: What now?
WordPress site hacked? The steps to take right away, why it keeps happening, how to prevent it, and when to bring in someone to fix it properly.
By SoyabotOctober 19, 20268 min read

In this article
Finding out your website has been hacked is stressful. Finding out it keeps happening is worse. Pages redirect somewhere strange, your host sends a warning, Google flags the site as unsafe, or customers tell you something looks wrong.
This is a general guide to what to do right away, why it can happen again, and how to prevent it. It is not a guarantee, because every hack is different. If you would rather hand it over, my WordPress maintenance services include repairs.
How a hack often shows up
Warning: this site may be unsafe
yourbusiness.com
Your Business: Home
This site may be hacked.
What to do right away
Move calmly, and in this order.
1. Do not panic, and do not delete anything yet
Deleting files in a hurry can destroy evidence and make cleanup harder. First, understand what you are dealing with.
2. Contact your hosting provider
Tell your host what you have seen. Many hosts can scan the account, identify infected files, and sometimes restore from their own backups. They may also have already suspended the site to protect other customers.
3. Make a copy of the current state
Before you change anything, back up the infected site, files and database, and keep it separate. It lets you investigate later and recover content if the cleanup goes wrong.
4. Check for a clean backup
If you have a backup from before the hack, you may be able to restore it. Make sure the date is before the problem began, or you will restore the infection too.
5. Change every password
Change the passwords for WordPress administrators, your hosting account, the database, FTP or SFTP, and the email accounts attached to the site. Use long, unique passwords, and a password manager makes that easy.
6. Scan and clean
Run a malware scan with a reputable security tool. Look for unknown files, modified core files, and suspicious code in your theme and plugins. Unknown administrator accounts are a common sign.
7. Update everything
Update WordPress, your theme, and every plugin to current versions. Delete plugins and themes you do not use, since inactive ones can still be exploited.
8. Check Google Search Console
If Google has flagged your site, Search Console's security issues report will say so. After the site is clean, you can request a review.
Why does it keep happening?
Sites that are cleaned and then hacked again usually have one of these problems:
- Something was missed. A hidden backdoor file lets the attacker back in even after the visible damage is removed.
- The original way in was never closed. An outdated plugin or theme that was exploited is still installed.
- Weak or reused passwords are still in use, or the same passwords are used elsewhere.
- Pirated themes or plugins often contain malware.
- The hosting account itself is compromised, or other sites on a shared server are infected.
- Unknown users or scheduled tasks are still on the site.
Fixing the visible symptom without finding the way in is why hacks come back.
Why hacks come back
The loop
until the way in is closed
The site is hacked
The visible damage is cleaned
The way in stays open
An old plugin, a backdoor, a reused password
The site is hacked again
Then it starts again
Signs your WordPress site has been hacked
Not every hack announces itself. Watch for:
- Redirects. Visitors are sent to other websites, often only on mobile or when coming from Google.
- Strange content. Pages, posts, or links you did not create, often about unrelated products.
- Warnings. Your browser, your host, or Google says the site is unsafe.
- Unknown users. Administrator accounts that you did not add.
- Performance changes. The site suddenly slows down or goes offline.
- Emails. Spam sent from your domain, or a flood of bounce messages.
- A drop in traffic, or odd pages showing up when you search for your site.
If you see any of these, assume the worst until you have checked.
What attackers do with a hacked site
Hacked sites are rarely attacked out of personal interest. Attackers use them to:
- Send visitors to scams or malicious websites.
- Publish spam pages that sell products and boost their own search rankings.
- Host malware, or distribute it to your visitors.
- Send spam email from your domain.
- Steal data, such as customer details, if your site collects any.
That is why a hacked site can harm your reputation and your search visibility even if nothing looks broken.
If customer data may be involved
If your site collects personal information, such as contact form submissions or customer accounts, think about what the attacker may have reached. Check what data is stored, change credentials, and consider whether you have any obligation to tell the people affected. Rules differ by state and by industry, so this is a question for a professional or a lawyer, not something to guess at.
How to prevent it
There is no way to make a site immune, but these steps reduce the risk a lot:
- Keep WordPress, your theme, and plugins updated, and apply security updates promptly.
- Use only plugins and themes you need, from sources you trust, and never pirated ones.
- Use strong, unique passwords and two-factor authentication for administrators.
- Limit login attempts and consider a firewall.
- Keep regular backups, stored away from the site, and test restoring them.
- Use good hosting that isolates accounts and monitors for threats.
- Give people only the access they need, and remove old accounts.
- Monitor the site, so you hear about problems from your tools and not from your customers.
How a professional cleanup works
When I clean a hacked WordPress site, the work follows a consistent order, so nothing is left behind:
A cleanup, in order
Contain it
Take the site offline or into maintenance mode if needed, so visitors are protected.
Preserve evidence
Copy the files and database as they are.
Find the way inThe key step
Review logs, plugins, themes, users, and file changes to see how the attacker got access.
Remove the infection
Replace core files with clean copies, remove malicious code, and delete unknown files and users.
Close the hole
Update or remove whatever was exploited, and reset every credential.
Harden the site
Add stronger logins, limits, and monitoring.
Verify
Re-scan, check the site from outside, and clear any warnings from Google.
Watch afterward
Keep monitoring for signs of reinfection.
The point of step 3 is that a cleanup without it is only a temporary fix.
When to bring in help
Bring in someone if:
- The site has been hacked more than once.
- You cannot find or remove the infection.
- The site handles customer data or earns real money.
- You do not have the time to monitor and update it regularly.
A professional can clean the site, find how the attacker got in, close it, and set up monitoring so it does not happen again. I offer one-time repairs as well as monthly plans, and details are on my WordPress maintenance page.
Is it time to leave WordPress?
If a site is hacked repeatedly because of an outdated plugin stack, you are paying for security work again and again. For a company website, a custom-coded site has no plugin stack, so there is less to attack and less to patch. It is not a guarantee of safety, and it is not right for stores or membership sites. But if your site mostly shows your services, moving off WordPress may remove the problem at its root.
A final word
A hack is fixable. The important thing is to treat it as a prompt to find the cause, not only to clean the symptoms. And do not skip the prevention steps once the site is clean, because that is how the next attack gets prevented.
Need help with a hacked WordPress site?
Tell me what you are seeing. I'll reply with what is needed to clean it and keep it from happening again.
Keep reading

October 19, 2026 · 8 min read
How much does WordPress maintenance really cost?
What WordPress maintenance costs per month, what plans include, what they leave out, and real plan examples checked on October 19, 2026.

October 19, 2026 · 8 min read
Is WordPress outdated in 2026?
Is WordPress outdated in 2026? An honest answer: what has aged, what has not, signs your own WordPress site is out of date, and your options.

October 19, 2026 · 8 min read
Why is my WordPress site so slow?
Why is your WordPress site slow? The most common causes, quick fixes you can try today, and when it makes more sense to rebuild the site.