Hacked website: clean up and close the security hole.

Bonbay Updated 3 min read

Signs that a website has been hacked.

Your visitors are being redirected elsewhere, Google is showing a warning or your host has suspended the site. Cleaning it isn't enough: you need to find how the attacker got in.

Redirects to gambling or pharmacy sites, foreign-language pages indexed by Google, a “dangerous site” warning in the browser, spam emails sent from your server, or suspension by your hosting provider.

On WordPress, Joomla or PrestaShop, the most common way in is an out-of-date plugin or theme, or an administrator password that is too simple.

What the engineer does.

A site that is cleaned without closing the security hole gets hacked again within days: the attacker knows the way in.

  • Copy the site and its database as they are, for analysis
  • Look for modified or added files (hidden scripts, webshells) and suspicious scheduled tasks
  • Delete unknown administrator accounts and change all access credentials: hosting, FTP, database, admin
  • Update the core, plugins and themes, and remove anything no longer used
  • Bring the site back online from a clean version, then request a review from Google and the blocklists

What about visitors’ data?

If the site collects customer accounts, forms or payments, you need to know whether that data was read or copied. The web server logs often tell you.

If there is a risk to individuals, the CNIL is notified within 72 hours, and the people affected are informed if the risk is high. We help you prepare these steps.

Bonbay. Updated 15 November 2026.

Your questions.

Does the site need to be rebuilt from scratch?

Rarely. A thorough clean-up and fixing the security hole are usually enough. A rebuild is worth discussing if the site relies on abandoned components that can no longer be updated.

How long will the site be offline?

Usually from a few hours to two days, depending on the size of the site and the state of the backups. A maintenance page avoids exposing visitors in the meantime.

Will Google remove the warning?

Yes, after the clean-up and a review request in Search Console. Processing takes from a few hours to a few days.

Can the hosting provider handle it?

They can suspend the site and provide a backup, but they rarely clean the content and don’t look for the security gap. That is the work we do, in liaison with them.

How do we stop it happening again?

Regular updates, plugins kept to the minimum, two-factor authentication on the admin area, backups stored off the server and file monitoring. That is what a security maintenance contract covers.

Further reading.

Le sujet plus largeJobBonbay Cyber helps SMEs that have suffered a cyberattack: ransomware, hacked e-mail, fraudulent bank transfer, hacked website or data leak.On the same subjectRansomwareWith ransomware, Bonbay Cyber first isolates the affected machines to stop it spreading, then copies the evidence needed for the investigation.On the same subjectHacked e-mail accountWhen a business email account is hacked, Bonbay Cyber first regains control of it: password changed from a clean device, sessions closed, two-factor authentication enabled.On the same subjectFraudulent bank transferAfter a fraudulent transfer, the first step is to call the bank and ask for the funds to be recalled, then report it to the police.On the same subjectData breachIn the event of a personal data breach, Bonbay Cyber helps the business establish what has leaked, how many people are affected and through which security gap.On the same subjectWeb and application testingA web and application penetration test puts a website, online shop, business application or API to the test.Bonbay Académie · With another serviceFormation IA en entrepriseBonbay Académie forme chaque service sur ses propres cas d'usage, après un diagnostic des tâches.Bonbay IA · With another serviceAgence IA pour les PMEBonbay IA audite les process, relie l'IA aux logiciels de l'entreprise et forme ceux qui s'en servent.Bonbay Design · With another serviceIdentité visuelle d'entrepriseBonbay Design conçoit logo, couleurs, typographies et style d'images comme un seul système.