Why does website malware keep coming back after I delete it?
Deleting infected files isn't enough because persistent malware hides its source in the database or configuration scripts, automatically recreating the threat on the next request. This leaves site owners stuck in an endless loop of manual cleanups where infections reappear within hours.
Core Friction Pattern
Analysis of 13 peer accounts across online developer and community forums reveals that “Why does website malware keep coming back after I delete it?” repeatedly surfaces due to edge-case mismatches between standard defaults and real-world environments. Standard troubleshooting frequently falls short, compelling practitioners to develop custom workarounds.
+17 alternative community-tested workarounds cataloged below.
What the numbers show
Counted from the threads quoted below. How we count
- People have been saying this in most months since September 2026.
- This comes up 117.5× more often in r/Wordpress than across the site as a whole.
What people tried
Every workaround mentioned in the threads below. We haven’t tested any of them — and nobody here is claiming they worked.
Found another way around this?
Share your steps and trade-offs so fellow engineers don't have to reinvent the wheel. No account required.
Why does website malware keep coming back after I delete it?
- 1Replacing core files and plugins with clean onesDid this help you?
- 2Changing user passwords, application passwords, app keys, and auth tokensDid this help you?
- 3Scanning via SSH from outside the site rather than using an in-plugin scannerDid this help you?
- 4Checking source code using curl as GooglebotDid this help you?
- 5Manually scanning files and databases for hidden backdoors and rogue administrator accountsDid this help you?
- 6Relying on host malware scannersDid this help you?
- 7Check the wp-content folder for recently modified PHP filesDid this help you?
- 8Run a scan with the web host or a security pluginDid this help you?
- 9manually searching through and clearing out malicious code filesDid this help you?
- 10Replacing core files with a fresh copyDid this help you?
- 11Going through plugins and themes to update or remove unused itemsDid this help you?
- 12Resetting admin passwords and security keysDid this help you?
- 13Checking uploads folders for stray script filesDid this help you?
- 14Installing web application firewalls and security tools like Wordfence or CloudflareDid this help you?
- 15blocking newly registered domains at the firewall levelDid this help you?
- 16using DNS filtering solutions like ZscalerDid this help you?
- 17factory resetting phones and clearing browser cachesDid this help you?
- 18monitoring banking and crypto transactionsDid this help you?
In their words
Unedited, grouped by where they were said, most upvoted first within each place, each linked to the thread it came from.
“As if you didn't already have enough to do, now you can go look to see what to check for if all your users got their crypto, digital payments, and browsers scraped today.”source ↗
“Our SOC caught this around noon today. All of a sudden I was getting my email blown up with alerts and we blocked it asap.”source ↗
“This week is really making me want to sell all my shit and move to the forest”source ↗
“we ran into a weird issue, where multiple links (buttons) on our site would lead to a gambling site (while masking themselves as our website. The URL was correct).”source ↗
“After a couple of hours I managed to clear out all malicious code and found a VERY interesting file.”source ↗
“A manual file cleanup was not enough: it came back within 24 hours because the malware’s source of truth was in the database and in wp-config.php.”source ↗
“i had the same fight on a client box, deleted the mu-plugin and it was back on the next request because object-cache.php was dropping it back from the db.”source ↗
“I've had this happen before and the entry point was almost never the core files themselves — it was usually an outdated plugin or theme letting something in, then rewriting the core files.”source ↗
“My Wordpress core files keep getting hacked with malware. I’m unsure of how they are getting in with all security protections enabled.”source ↗
“Thanks for the heads up. I noticed UK Casinos linked on a client’s Shopify site but it was through a link to an old domain they no longer used. I’ll need to check if that old domain was a Wordpress site. I guess I’ll be working this weekend to make sure their Shopify site is not compromised.”source ↗
“Me ha ocurrido en una web, pero solo se activaba desde mac. Muchas gracias por compartirlo en cuanto tenga un rato sigo estas instrucciones.”source ↗
“What a cluster fuck.”source ↗
“That looks like a credit card skimming script, likely injected through a compromised plugin or theme file.”source ↗
“I remember reading about a specific malware that embedded itself in the database and once the site was cleaned it would somehow reinstall itself.”source ↗
“facing this thing/malware on several wordpress sites?”source ↗
“I have an antivirus on the server”source ↗
Where this came up
People with this problem also raised
Related community dilemmas clustered by discussion consensus
Why does Microsoft Edge force ads and unwanted features?
Browsers like Edge bundle unwanted promotional content, shopping tools, and constant pop-up prompts for features like Copilot across multiple interface locations. This relentless bloat forces users and administrators to manually disable the clutter through enterprise policies just to achieve a clean browsing experience.
How to safely clean up toxic pest control dust
Sweeping up indoor insecticide dust immediately triggers severe respiratory symptoms like sneezing, coughing, hoarseness, and headaches that can persist and worsen over multiple days. Without knowing how long the dust takes to settle or how to safely clean it up without a shop vac blowing it back into the air, people risk prolonged illness.
How to remove a spider and its web without killing it
You can gently relocate a house spider by nudging it onto a piece of paper or a cup using a soft brush, then moving the web intact or sweeping it away once the spider is safe. Relocating them carefully prevents unnecessary stress or harm, which is a common worry when you want to clear out webs without resorting to harsh indoor pesticides.
How to get mold out of forgotten laundry
Moldy clothes left forgotten in the washing machine can usually be safely salvaged rather than thrown away, provided the spores are thoroughly killed and washed out. However, people worry that standard rewashing will not remove the health risks or the stubborn black stains, leaving them unsure whether to toss the garments or how to check the washing machine drum for hidden spores.
How to clean up a hacked website and fix malware
Website hacks manifest as random redirects, injected footer scripts, and unexpected user logouts that force owners to spend entire weekends manually scanning files and troubleshooting PHP functions at 3 AM. This demanding clean-up process stems from neglecting basic security hardening before the breach occurs, leaving sites entirely vulnerable to compromises.
How to clean up old rat droppings safely
Old rodent droppings carry dangerous pathogens like hantavirus that become airborne if swept or vacuumed, making people terrified of exposure or falling ill during cleanup. This fear stops them from tackling infestations in neglected spaces, leading them to leave hazardous waste behind or abandon the cleaning process altogether.