In this guide
The short answer
In most cases, the site owner is responsible for the website software: WordPress, plugins, themes and passwords. Hosts are responsible for the server. Developers are responsible for what’s in their agreement with you. Everyone has a part, but by default the cleanup lands on the owner.
What hosting providers usually cover
- Their servers and infrastructure, including the operating system, PHP version on shared hosting, and the hosting platform.
- Detecting malware on their servers, and often suspending infected sites to protect others.
- Telling you which files their scanner flagged.
What they usually don’t cover is cleaning your WordPress site. Some hosts sell cleanup as an add-on, and a few managed WordPress plans include it. Check your plan. If the hack came through a server-level problem, such as an outdated PHP version the host was responsible for or a compromised server, the host should be involved, and it’s worth asking.
What your web developer or agency owes you
It depends entirely on your agreement:
- Website built and handed over, no maintenance contract: updates and security are usually your job after handover.
- Maintenance or care plan: if they were paid to keep the site updated and it was hacked through something they should have updated, they should help.
- Custom code with a security hole: if their own code was the entry point, it’s reasonable to ask them to fix it.
What you’re responsible for as the owner
- Keeping WordPress, plugins and themes updated (or paying someone to).
- Strong, unique passwords and two-factor login.
- Not installing nulled or untrusted plugins.
- Having backups.
- Getting the site cleaned when it’s hacked, by you or someone you hire.
What to ask each party
Ask your host: which files did you detect, and when? Do you have access logs from that time? Is cleanup included in my plan? Are other sites on my account affected?
Ask your developer: did our agreement include updates or security? Did you add any custom code or plugins I should know about? Do you have the original files to compare against?
Avoiding the argument next time
The simplest way to avoid “whose job is it?” is to make it someone’s job, in writing: either you keep the site updated yourself, or you have a care plan with a clear scope. And if your site is hacked right now, the fastest path is usually to get it cleaned first and settle responsibility afterwards. My hacked website cleanup is $95, and the report you get makes those conversations much easier.
From my cleanup work: I’ve seen owners lose a week bouncing between host and developer while the site showed a Google warning. When the cleanup was finally done, the cause was a plugin nobody had updated since launch. Neither the host nor the developer was really at fault. It just wasn’t anybody’s job.