---
title: "Hacked website: clean up and close the security hole."
url: https://www.bonbay.fr/en/cyber/intervention/site-internet-pirate/
site: "Bonbay Cyber"
description: "Redirects, spam pages, Google alerts, unknown files: how Bonbay Cyber cleans up a hacked site, closes the security hole and brings it back online properly."
updated: 2026-11-13
---

# Hacked website: clean up and close the security hole.

> When a website is hacked, Bonbay Cyber first makes it safe, in maintenance mode or as a clean version, then looks for files added by the attacker, unknown administrator accounts and backdoors. The security hole is fixed before the site goes back online, all access credentials are changed, and a review is requested from Google if the site was flagged.

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.

## En bref

- **Make it safe** Maintenance page or clean version: visitors are no longer exposed during the clean-up.
- **Look for backdoors** Hidden scripts, added accounts, scheduled tasks: anything that would let the attacker come back.
- **Bring it back online properly** Security gap fixed, access credentials changed, plugins updated, then a review by Google.

## Signs that a website has been hacked

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.

## Questions fréquentes

### 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.
