client website hacked — cover illustration
← Blog

Client website hacked: a guide for web agencies and freelancers

Updated Ivan Pantić

When your own site is hacked, the problem is yours. When a client's site is hacked, the problem is both yours and theirs, and the pressure doubles. The client calls, nervous, asking what happened, whose fault it is and when it will be fixed. Meanwhile you're trying to understand what's going on, and somewhere in the background there's another question: if this site was hacked, what about the other sites you manage?

For web agencies and freelancers, a hacked client website isn't just a technical problem. It's also about the client relationship, responsibility, contracts and reputation. How you handle it often decides whether you keep that client.

In this article we go through what to do in the first hours, how to talk to the client, how to check whether other sites are at risk, and how to set things up so that next time the problem is caught before the client notices.

In short: when a client website is hacked, first stop the damage and save a copy, then tell the client briefly and honestly. Immediately check the other sites on the same hosting and with the same plugins. Cleanup must cover the hidden entrances too. Finally, put monitoring in place for every site you maintain.

Get in touch about working together → · +381 65 402 5000

What happens when a client's site is abused

What happens when a site is abused

Many agencies first ask: how serious is this? The answer depends on what the attacker is doing with the site, but the consequences for the client are usually some of these:

Spam in Google results. Hundreds or thousands of spam pages appear under the client's domain. The client loses rankings and sometimes gets a label in results saying the site may be hacked.

Visitor redirects. Visitors, often only those on phones or coming from search, end up on someone else's pages. The client finds out from their customers.

A red warning in Chrome. If Google judges the site dangerous, visitors see a warning before they reach it. Traffic practically stops. Details in website blacklisted by Google.

A suspended hosting account. If the site sends spam or spreads malware, the host shuts down the account. If other sites are on the same account, they go down too. More in hosting account suspended for abuse.

Data at risk. If the site collects data through forms, sign-ups or a shop, the attacker may have accessed it. That can have legal consequences for the client too.

Domain email reputation. If the site sent spam, the client's email from that domain lands in spam folders, including regular business correspondence.

For the agency, the consequence is also that the client asks why nobody noticed.

The first hours: what to do right away

1. Stop the active damage

If the site is redirecting visitors, showing fake pages or sending spam, put it in maintenance mode. That stops the damage to visitors without wiping the evidence.

2. Make a copy

Before any changes, copy the files and database as they are. This copy is your protection if something goes wrong, and the trail for working out how the attacker got in. Without it, you won't be able to explain to the client later what happened.

3. Change access credentials

Change passwords for WordPress admin, hosting, FTP and the database. If you used the same or similar credentials on other sites, change those too. This matters especially for agencies, because credentials are often shared across the team and stored in shared places.

4. Write down the timeline

When the problem was noticed, who reported it, what was done and when. You'll need this both for the conversation with the client and for the report.

5. Check the other sites

This is the step agencies most often postpone, and they shouldn't. More on it below.

How to talk to the client

How to talk to the

How you inform the client often matters more than the technical failure itself. Clients usually understand that hacks happen. They have a harder time accepting being the last to know or getting vague answers.

Get in touch first, if you can. If you noticed the problem before the client, contact them right away, even before you have all the answers. A client who hears it from you is in a completely different mood from a client who hears it from their customer.

Be short and specific. What happened, what you've already done, what comes next and when you'll be back in touch.

Don't speculate about the cause. Until it's clear how the attacker got in, don't make claims. Say you're determining the cause and will state it in the report.

Don't shift the blame. Even if the cause is something the client did, such as installing a plugin without you or using a weak password, it doesn't matter in the first conversation. What matters is that you're fixing it.

Give a time for the next update. "I'll get back to you today by 5 pm with more information" is far more reassuring than "we're working on it".

A sample first message to the client:

We've noticed a security problem on your site: [short description, e.g. some visitors were being redirected to other pages]. We've temporarily put the site in maintenance mode to protect visitors. We've saved a copy and changed the access credentials. We're now determining the cause and cleaning the site. We'll get back to you today by [time] with an update. We're available for any questions at [contact].

Check the other sites you manage

When one client's site is hacked, the first question has to be: does the same risk exist on other sites? For agencies, the answer is often yes.

Sites on the same hosting account

Many agencies and freelancers keep several client sites on one hosting account, for practical reasons. The problem is that an infection on one site easily spreads to others on the same account, because they share the same disk space and the same user account on the server.

If one site on such an account is hacked, assume they're all at risk until proven otherwise. Cleaning only one site while the others are infected leads to reinfection within days. This is one of the most common reasons an infection returns after cleanup.

Sites with the same plugins or theme

Agencies often use the same toolkit on every project: the same theme, the same page builder, the same form and SEO plugins. If the entry point was a vulnerable plugin, the same plugin is probably on other sites too.

When you identify the entry point, immediately check which other sites use the same plugin in the same version, and update them before automated scripts find them.

Pirated licenses

If the agency ever used pirated (nulled) versions of premium themes or plugins, even on a single project, that's a serious risk. Such versions very often contain a backdoor from day one. We cover this separately in nulled WordPress themes and plugins.

Shared credentials

If the attacker got hold of credentials, and they're the same or similar on other sites, all of them are at risk. Review where credentials are stored in the team and who has access to them.

A quick check of all sites

For a first pass, run a free check for every site you manage. In under a minute it shows whether anything suspicious is visible from outside. For sites on the same hosting account as the hacked one, that's not enough; a deep review is needed.

Cleanup: do it yourself or hand it off

Cleanup: do it yourself or hand it off

Many agencies have developers who can clean a site. The question isn't whether they can, but whether it's the best use of their time, and whether the cleanup will be complete.

Cleaning a hacked site isn't the same as development. It takes knowing where malware hides, the patterns attackers use and the order that prevents reinfection. A developer who does this once a year can easily miss a backdoor in the database or a scheduled task that brings the infection back. And if the infection returns a week later, that's far worse for the client relationship than if the cleanup had taken a day longer.

If you decide to clean it yourself, follow the process we describe in hacked website cleanup, step by step. If you hand it off, make sure you get a clear report you can forward to the client.

Contracts and responsibility

This is a topic agencies usually start thinking about only after the first incident.

Who's responsible for the site's security after handover? If the contract doesn't say, the client usually assumes it's you, and you assume it's them. A hack is the moment that gap becomes visible.

Does the client have a maintenance contract? If so, what exactly does it include: updates, backups, monitoring, incident response? If not, who pays for the cleanup?

Who has access to the site? If the client has administrator access and installs plugins themselves, part of the responsibility is theirs. That should be in the contract.

This isn't legal advice, just questions worth settling in advance. For specific contract wording, consult a lawyer.

The client's data at risk

The data at risk

If the client's site collects personal data, such as names, emails, phone numbers, orders or sign-ups, a hack may carry a legal obligation to report it. In the EU and UK, under the GDPR, the obligation lies with the client as the controller, but the agency, as the processor, must inform the client of the breach without undue delay.

That's another reason to tell the client right away, not only once everything is fixed. We cover obligations after a data breach separately in data breach notification after a hack. If in doubt, both you and the client should consult a lawyer.

How to find out before the client next time

The biggest difference between agencies that keep a client after a hack and those that lose them is who noticed the problem first.

For agencies managing many sites, manual checking isn't sustainable. You need a system:

  • Monitoring of file changes and administrator accounts on every site, with alerts.
  • Uptime monitoring, so you know a site is down before the client tells you.
  • A central view of updates, so vulnerable plugins are patched the same day on every site.
  • Search Console for every site, with the agency's address receiving notifications.
  • Off-server backups for every site, with several versions kept.
  • Separate hosting accounts, or at least isolation between client sites.
  • Tidy credentials: a password manager, unique passwords, two-factor login, removing access for former team members.

If you don't want to do maintenance and monitoring yourself, it's a service you can outsource. Our maintenance plan starts from €35/month per site and includes updates, backups, uptime and security monitoring with alerts. What exactly it includes is described in WordPress maintenance.

An incident plan: one page that saves hours

An incident plan: one page that saves hours

Agencies that get through a client hack well usually have one thing in common: they knew in advance what they'd do. You don't need a long manual. One page, available to the whole team, answering a few questions is enough:

  • Who's responsible when a problem report comes in, and who covers when they're unavailable?
  • How is a site put into maintenance mode, quickly and without deleting data?
  • Where is the copy made and where is it stored?
  • Where are the credentials and how are they changed for all sites at once?
  • Who informs the client, through which channel and with which message?
  • Who is the cleanup handed to, if you don't do it yourself, and how are they reached?
  • How are the other sites checked that share plugins or hosting?

Once this is written down, nobody wastes time during an incident on decisions that could have been made in advance. And the client sees a team that knows what it's doing.

The most common agency mistakes

Silent cleanup. The agency notices the problem, cleans it quickly and tells the client nothing, hoping they won't notice. If the infection returns, or the client hears from someone else, trust is gone.

Cleaning one site on shared hosting. The other sites on the same account stay infected, and the infection returns to the cleaned site.

Updating only the hacked site. If the entry point was a vulnerable plugin, the same plugin on other sites is still vulnerable.

The same credentials everywhere. One leaked password opens every site.

Access for former team members. A developer who left two years ago still has an administrator account on a dozen client sites.

No maintenance contract. The site was handed over, nobody maintains it, and when it gets hacked, the client calls the agency that built it.

What if the mistake was yours

What if the mistake was yours

Sometimes the review shows the entry point was something the agency is responsible for: a plugin you installed and didn't update, a pirated theme from an older project, a shared hosting account, a former team member's access.

That's unpleasant, but the worst possible reaction is to hide it. The client will find out sooner or later, especially if the problem repeats. It's much better to say clearly what the cause was, what you did to fix it and what you're changing in how you work so it doesn't happen again, for example moving to separate hosting accounts or introducing monitoring for all sites.

Clients generally accept a mistake that's openly admitted and corrected better than one they discovered themselves.

A hack as an opportunity

It sounds odd, but an incident can strengthen the client relationship if it's handled well. A client who sees that you reacted quickly, told them honestly, fixed the problem and suggested how to prevent a repeat often has more trust afterwards than before.

It's also a natural moment to talk about maintenance. A client who just went through a hack understands the value of monitoring far better than a client you explain it to at the start of a project.

How we work with agencies

We work with agencies and freelancers in two ways:

One-off cleanup. When a client's site is hacked, we take over the cleanup, close the entry point and provide a report you can forward to the client. Standard Incident from €100, Emergency Response from €150, with emergency support non-stop.

Ongoing maintenance and monitoring. For the sites you maintain, we take over updates, backups and monitoring, and you get notified when something matters.

For agencies with several sites, terms are agreed individually. Get in touch with the number of sites and a short description of how you maintain them now.

Don't wait for the client to find out first

client website hacked — closing section illustration

If your client's website has been hacked, or you want to make sure you never hear it from them first, get in touch. Send the site address, a short description and the number of sites you manage.

Get in touch about working together → · +381 65 402 5000 · or run a free website check


Questions

Frequent questions

Short answers with this article. If your question is not here, write to us via contact.

Do I have to tell the client the site was hacked?

Yes. The client owns the site and has the right to know. In addition, if personal data is at risk, there may be legal obligations.

Who pays for the cleanup?

That depends on the contract. If the contract doesn't cover it, agree with the client and add it to the contract for the future.

Should I check all sites or only those on the same hosting?

All of them, but sites on the same hosting account and sites with the same plugins or theme come first.

What if the client installed the plugin that was the entry point?

State it in the report, calmly and without blame, along with a suggestion for how plugins should be installed in the future.

Can I send you several sites at once for a check?

Yes. Get in touch with a list and a description, and we'll agree on the order and terms.

Does the client need to know someone else is doing the cleanup?

That's a matter of your relationship with the client and your contract. Either way, the client should get a clear report of what was done.

How quickly should I inform the client?

As soon as possible, ideally the same day you notice the problem. If personal data is involved, speed also matters because of the legal deadlines the client has as the controller.

What if the client refuses to pay for the cleanup?

That's why it matters that the contract settles in advance who's responsible for security after handover. If it isn't settled, talk openly, look for a solution that preserves the relationship, and update the contract for the future.

Should I move all clients to separate hosting accounts?

If you currently keep them on one account, it's one of the most useful changes you can make. An infection on one site then doesn't put the others at risk.

Does every site need monitoring, or only the important ones?

At minimum, sites with shops, forms that collect data, and the clients who bring you the most work. Ideally all of them, because infections most often appear on exactly the site nobody's paying attention to.

Not sure if your site has been hacked?

Run the free check: security, SEO and AI scores. Detailed findings unlock when you enter your email.

Check my site