---
title: "My website has been hacked: what to do in the first 24 hours"
description: "Your site has been hacked or Google has flagged it as dangerous. The exact steps for the first 24 hours, in order and without paying a ransom to anyone."
date: "2026-11-26"
category: "Website security"
keywords: "my website has been hacked, hacked website what to do, infected website, Google flagged my site as dangerous, clean a hacked website, small business website security"
portada: "/portadas/portada-mi-web-ha-sido-hackeada-que-hago.webp"
---

The owner of a physiotherapy clinic opens his website on a Monday morning and does not see his homepage: he sees an online pharmacy with the texts in Russian. He tries it on his phone and gets the same thing. At midday a client writes to him: "why does your link take me to a page about pills?"

That is how a hacked website almost always shows up. Nobody calls to warn you; the damage is discovered by a customer, by Google or by a notice from the hosting company. And in a small business it is rarely a targeted attack: most intrusions are automatic, they look for any website with an out-of-date plugin and they get in on their own.

What makes the difference is the order of the steps. Doing them in another order — paying, deleting, reinstalling — usually makes the problem worse.

## The signals almost nobody reads

- Your website redirects to another site, especially from a phone, or a page that is not yours appears.
- Pages you never created show up in Google: articles in Japanese, casino, copies of well-known brands.
- The browser shows a "this site may harm your computer" warning, or Google Search Console talks about "hacked content".
- The site takes fifteen seconds to load something that used to open instantly.
- There are folders or files with odd names in your hosting panel.
- Your email starts sending messages you did not write, or you get replies from people you do not know.
- You receive an email asking for money in cryptocurrency so that supposed data of yours is not published. It is almost always a mass scam, but sometimes it coincides with a real intrusion.

A single one of these signals deserves a check. Five at once mean the website has been compromised for a while.

## What you must not do while it is hot

Do not pay any ransom. On a small website the attacker almost never has anything worth a payment, and paying guarantees nothing.

Do not delete the whole website to "start from scratch". Without a previous backup you lose texts, photos, products and your positions in Google, and you also lose the chance to find out what was changed.

Do not keep using the panel until you change the passwords. Redesigning with the intruder inside is cleaning the house with the door open.

And do not give access to anyone who writes to you on WhatsApp offering to fix it in an hour. Recovery scams exist: they feed on the fright.

## The first 30 minutes, in this order

1. **Make a full copy** of the files and the database, even if it is infected. It is your reference to compare what changed, and it lets you report the attack or claim on insurance if you have it.
2. **Change the passwords from another device**: hosting, website panel, email, database, FTP. And turn on two-step verification for the email, which is the key to everything else.
3. **Check the administrator users**. There is almost always a new one with an email that is not yours, or the recovery address points to somewhere you do not recognise.
4. **Look at Search Console** if you have it: the Security and Manual actions sections. If you do not have it, this is the moment to claim ownership of your domain in Google.
5. **Tell your hosting company**. Many block the account, restore a copy and stop the problem spreading to other websites on the same server.
6. **Review the database and recent files** if someone who knows helps you: new users, forms that send odd emails, files dated the day of the attack.

## The next 24 hours: clean up or roll back

The fastest and safest route is almost always to restore a copy from **before** the attack. That is why the date matters: if the copy is from afterwards, you put the problem straight back.

After restoring you have to close the door: update the website's CMS, its plugins and theme, change the database passwords and check that no users or files added by the intruder are left. A restored but unpatched website falls again within weeks.

If there is no clean copy, manual cleaning is the only option. It is several hours of work and it should be done by someone who can read logs, not by someone who installs an "anti-hack" plugin and crosses their fingers.

With the site clean, you request a review in Search Console. Google takes days and sometimes you have to submit the request two or three times; meanwhile the website can stay flagged as dangerous and keep losing visits.

Two more warnings that are often forgotten: if the domain email was used to send spam, tell your contacts; and if the website stored customer data (name, phone, email), there may be notification duties with very short legal deadlines, so check it with your adviser that same day.

## How they get in (and why it is not bad luck)

Almost no small business receives a tailored attack. Bots scan the whole internet for websites with a reachable admin panel, reused passwords or add-ons that have not been updated in three years, and they try thousands per hour.

The usual routes are few and well known: a panel password reused from another service, an old plugin or theme, a form that allows file uploads, a cheap shared host where one infected neighbour splashes everything, and the website somebody built in 2016 that nobody looks at any more.

Hence the uncomfortable rule: a website that is not updated is not standing still, it is waiting.

## When rebuilding makes more sense than cleaning

If your website is an old template nobody maintains, cleaning it can cost more than rebuilding it, and two months later it is just as exposed. A website with its content in files, no plugins to update and automatic backups gets infected far less and is recovered in an afternoon.

Before deciding, ask yourself three things: which version of the CMS you use, who updates it and how often, and where a backup would come from if the website disappeared tomorrow. If you cannot answer all three, the problem is not the hack: it is that nobody is in charge.

If your website has stopped working and you do not know whether it is a hack or a server outage, [what to check in the first 30 minutes](/blog/en/tu-web-ha-dejado-de-funcionar) gives you the diagnosis step by step. And once everything is back to normal, the [ten-minute test to find out who keeps a backup of your website](/blog/en/copia-de-seguridad-de-tu-web-quien-la-tiene) prevents the next scare from being the last one.

If you would rather start from scratch with a website that depends on no plugins and on nobody, you can [request a free design proposal for your business](/solicita-web/en) with no obligation.
