Troubleshooting · Guide

My website was hacked: what to do right now (and next)

Hacked site, redirects, foreign-language pages, Google warning: what to do within the hour, how to clean the site and prevent another attack.

Short answer

If your site is hacked: immediately change every password (hosting, admin, email), put the site in maintenance mode, back up its current state for analysis, alert your host, then have the site cleaned or restore a clean backup, update everything and ask Google to review the site. Then set up regular backups and maintenance.

Key takeaways

  • Act within the hour: every day worsens the damage on Google
  • Change all passwords before cleaning
  • Restoring without fixing the hole means getting hacked again
  • The best protection remains regular updates and backups

A client writes: "Your website sends me to a betting site." Or Google shows Japanese pages under your name. Your site has probably been hacked. Don’t panic: here is the exact order of actions.

In the first hour

  1. Change every password: hosting, site admin (WordPress or other), database, FTP, email, domain registrar account. Use long, different passwords.
  2. Turn on two-factor authentication wherever possible.
  3. Put the site in maintenance mode if visitors are being redirected to dangerous sites.
  4. Copy the current state (files and database): it helps understand the attack.
  5. Alert your host: they often have logs and can isolate the account.

Find the cause

The most frequent causes, in order:

  • Outdated WordPress plugins or themes (by far the first cause).
  • "Premium" themes or plugins downloaded for free from shady sites: they often contain a backdoor.
  • Weak passwords or passwords shared among several people.
  • Badly configured hosting or hosting shared with infected sites.
  • A former provider whose access was never removed.
Urgent problem with your website?

NTG Studio Web does it for you (Security & hosting, Maintenance & webmaster). Free 30-minute audit, reply within 24 hours, payment by Orange Money or MTN MoMo.

Clean the site

Two options:

  • Restore a clean backup dated before the attack, then immediately update everything that was vulnerable. Without fixing the hole, the site will be hacked again within days.
  • Clean the site in place: remove malicious files, unknown admin accounts and injected pages, and check the database. This is specialist work.

Repair the damage on Google

  • Open Google Search Console and check "Security issues".
  • Remove hacked pages and request their removal.
  • Once the site is clean, request a review.
  • Check your domain isn’t on a spam list if your emails are being blocked.

Personal data

If client data (forms, accounts, orders) may have been exposed, Cameroon’s Law No. 2024/017 on personal data protection, in force since June 2026, imposes security obligations. Get advice. See Law 2024/017 on personal data: what your website must do.

Prevent the next attack

  • Monthly updates of the site, theme and plugins.
  • Automatic backups stored off the server and tested.
  • Named admin accounts, strong passwords, two-factor authentication.
  • Uptime and integrity monitoring.
  • For sites that rarely change, a static site, almost impossible to hack.

That is exactly what our maintenance service covers: Website maintenance: what it covers and what it costs. If your site is hacked right now, message us on WhatsApp: we prioritise the diagnosis.

Frequently asked questions

How do I know my site was hacked?

Common signs: redirects to other sites, unknown pages in Google (often in Japanese or about pharmaceuticals), "dangerous site" browser warnings, unknown admins, sudden slowness, spam sent from your domain.

How much does cleaning a hacked site cost?

It depends on the extent of the attack and whether a clean backup exists. An audit gives a precise figure. It is almost always more expensive than preventive maintenance.

Can a hacked site hurt my business?

Yes: loss of trust, Google ranking drop, emails flagged as spam, and legal risk if client data was exposed.

Noé Mbwang
Noé Mbwang

Founder of NTG Studio Web in Douala. Master’s in international public law, IBM Data Analytics and Anthropic AI Fluency certified. He designs websites and visibility strategies for African businesses. Learn more →

Read next

Troubleshooting

Slow website: 10 causes and fixes to speed it up

Does your site take over 3 seconds to load on mobile? The 10 most common causes of slowness and practical fixes, tested on Cameroonian networks.

3 min read
Troubleshooting

Developer disappeared: recovering your website and domain

Your provider stopped answering and you have no logins? How to recover your domain, hosting and website, step by step.

3 min read
Troubleshooting

My website doesn’t show up on Google: a 9-point diagnosis

Your site is live but can’t be found on Google? The 9 checks to understand why: indexing, robots, Search Console, content, competition, Google profile.

3 min read

Your free 30-minute audit

We review your site (or your idea), your competitors and your visibility on Google and in AI tools. You leave with a plan.