What Happens When a Website Gets Hacked?

By Bug Circuit Security Team
What Happens When a Website Gets Hacked?

Is your own website affected? Check it free in 2 minutes.

Passive outside check only. Nothing is attacked, no signup.

When a website gets hacked, the attacker usually plants a hidden way back in first, then uses your site for spam, redirects, malware or stolen data, and the visible damage (browser warnings, blocklists, lost Google rankings) often shows up days or weeks later.

This post is for owners of small sites, WordPress and Shopify stores, indie SaaS and local businesses who want to know what really happens after a break-in. You will get a stage-by-stage timeline, the warning signs at each stage, a few checks you can run today, and the recovery steps to follow. Timelines vary. Not every hack goes through every stage, and some are caught early.

Can a website be hacked? Yes, usually in boring ways

Yes, websites get hacked every day, and most of it is not personal. Attackers use automated tools that scan the internet for known weaknesses, then break into whatever answers. Your site does not need to be famous or big.

The usual ways in are plain:

  • Outdated plugins, themes or apps with a publicly known flaw. Known flaws are catalogued in the National Vulnerability Database.
  • Stolen or reused passwords, often from an unrelated breach.
  • Weak or exposed admin logins with no second step (two-factor authentication).
  • Broken access control, where a page lets someone do things they should not. It is a top category in the OWASP Top 10.

Want to know how exposed you might be? Our guide on whether your website is hackable walks through it.

The timeline at a glance

StageWhenWhat the attacker doesWarning signs you might see
1. Break-inAt the startGets in, adds a backdoor (a hidden way back in) or a new admin userUnknown admin accounts, changed files, login alerts
2. Your site is put to workSoon afterAdds spam pages, redirects visitors, injects malware or a card skimmerOdd pages in Google, redirects on phones, slower site
3. Warnings and blocklistsOften days to weeks laterYour site is flagged as unsafe or used to send spamRed browser warning, email bouncing, host suspension
4. Data theft and lost rankingsOngoingCopies data or keeps injecting spamTraffic and rankings drop, customers report fraud

Think of this as a common pattern, not a schedule. Some attackers move fast. Others sit quietly for a long time.

Stage 1: The break-in and the backdoor

Once inside, a careful attacker does not rush. They first make sure they can come back, even if you change your password or update the flawed plugin.

Typical moves:

  • Create a new administrator account with a believable name.
  • Upload a small script (a web shell) that lets them run commands from a browser.
  • Hide extra code inside theme files, the uploads folder or the database.
  • Add a scheduled task that quietly re-infects the site.

Warning signs: admin users you do not recognize, files changed on dates you did not touch them, or a login notification at a strange hour. This is the best stage to catch a hack, because little damage is done yet.

Stage 2: Your site starts working for them

Now the attacker turns your site into a tool. Common uses:

  • Spam pages (SEO spam). Hundreds or thousands of pages selling pills, gambling or fake goods, often hidden from you but shown to Google.
  • Sneaky redirects. Visitors, often only on mobile or from Google, get sent to scam sites.
  • Malware downloads. Fake update prompts or infected files.
  • Card skimmers. Code on a checkout page that copies payment details as customers type them.
  • Spam email. Your server or your domain is used to send junk.

You, as the owner, may see nothing. Hacks are often built to hide from the logged-in admin.

Warning signs: search Google for your site and see strange titles, a slower site, customers saying they got redirected, or hosting emails about unusual traffic.

Stage 3: Warning screens and blocklists

Sooner or later, someone notices. Google Safe Browsing and similar systems flag sites that host malware or phishing. Visitors then see a full-page red warning in Chrome and other browsers. Search results can also carry labels such as "This site may be hacked", as Google Search Central explains.

Other consequences at this stage:

  • Your email lands in spam, or bounces, if your domain or server was used to send junk.
  • Your hosting company may suspend the account.
  • Customers lose trust fast, and some do not come back.

You can check your status for free in Google's Safe Browsing site status tool.

If email is part of your worry, our email spoofing tool checks whether your domain is easy to impersonate.

Stage 4: Stolen data and lost search rankings

This is the slow, expensive part. Depending on what the site holds, an attacker may copy customer lists, order details, form submissions or login hashes (scrambled passwords). Those can be sold or used against your customers on other sites. Depending on where you and your customers live, you may have legal duties to report a breach.

Meanwhile, search rankings suffer. Spam pages dilute your content, and Google may demote or label hacked pages. Rankings often come back after a proper cleanup and a review request, but it can take time. I will not give you a number, because it depends on the site and how long the hack ran.

The real costs, in plain terms:

  • Lost sales while the site is flagged or down.
  • Cleanup time or paid help.
  • Lost search traffic.
  • Customer trust, and possibly breach notifications.

Quick checks you can run today

These will not prove you are clean, but they catch common signs.

These WP-CLI checks need SSH access and WP-CLI, and should be run as the site's user, not root. On Shopify or a custom app, check your staff or admin user list and installed apps instead.

1. Look for spam pages in Google. Search this, swapping in your domain:

site:yourdomain.com casino OR viagra OR "cheap" OR replica

2. Check admin users (WordPress, with WP-CLI):

wp user list --role=administrator

3. Verify WordPress core and plugin files against the official copies (WordPress, with WP-CLI):

wp core verify-checksums
wp plugin verify-checksums --all

Files reported as modified or unexpected deserve a closer look. Some premium plugins are not in the official repository, so they may not be checked.

4. Find recently changed PHP files (run in your site folder over SSH):

find . -type f -name "*.php" -mtime -7

Attackers can fake file dates and normal updates change files too, so treat this as a clue, not proof. An empty result does not mean the site is clean, and a long list does not prove a hack.

5. Look at your scheduled tasks (WordPress, with WP-CLI):

wp cron event list

You can also run our free website security check for a passive look from the outside.

What to do if you see a warning sign

Do not panic and do not delete things at random. Follow this order:

  1. Take a backup of the current state (even the infected one) and store it somewhere private, away from your live site. Keep it as evidence only. Do not restore from it.
  2. Find and remove backdoors first. Remove unknown admin users and web shells (hidden scripts that let an attacker run commands) before you change any passwords. Otherwise the attacker can keep their access or capture your new passwords. If you only delete the visible spam, the attacker returns.
  3. Update everything (core, plugins, themes) and remove what you do not use.
  4. Rotate the WordPress secret keys and salts in wp-config.php and log out all sessions. Replace the eight key and salt lines with fresh values from the official WordPress.org generator. This signs everyone out, including any session the attacker still holds.
  5. Change passwords for hosting, admin, database and email, from a clean device, and turn on two-factor authentication.
  6. Follow our step-by-step hacked website recovery guide for cleanup, restoring and re-checking.
  7. Ask Google for a review after cleanup, using the steps in Google's hacked site guide.

For a hack involving payments or customer data, also talk to your payment provider and, if needed, a lawyer about notification duties.

Key takeaways

  • Yes, websites can get hacked, mostly through outdated software, weak or stolen passwords and exposed logins.
  • The first sign is often not a crash. It is spam pages, redirects or a browser warning, which can arrive days or weeks later.
  • Catch it early: check admin users, file changes and what Google shows for your domain.
  • Cleanup means removing the backdoor, not just the visible spam. Do that before you change passwords.
  • Rankings and trust can recover after a proper cleanup, but prevention is cheaper.

A human look before it happens to you

If your site is not hacked, the best time to find weak spots is now. A Bug Circuit Essential audit costs $49 one-time. A real person tests one website by hand and sends a full written report with every issue, severity, evidence and fix steps. It is a small-site audit, not a multi-week enterprise pentest or a compliance certificate, and there is no ongoing monitoring. Fixing is separate: you can ask for a price per issue and pay only if you agree. If your site is already hacked, start with the recovery guide first.

Want certainty, not guesswork?

A real human security engineer audits your whole site by hand and sends a full report: every issue, its severity, and the exact fix. From $49, with a 14-day money-back guarantee.

Frequently asked questions

What happens when a website is hacked?
Usually the attacker adds a backdoor first, then uses the site for spam pages, redirects, malware, card skimming or data theft. Over days or weeks you may see browser warnings, blocked email, a suspended hosting account and falling search rankings. Some hacks stay invisible for a long time.
Can a website be hacked?
Yes. Websites are scanned by automated tools all day, and attackers get in through outdated plugins, stolen passwords or exposed admin logins. Small sites are common targets because they are often less maintained, not because they are special.
Can websites get hacked even if they are small?
Yes. Attackers often use bots that look for known weaknesses and do not care how big the site is. A small site can still be used to send spam, host malware or steal customer data.
How do I know if my website has been hacked?
Common signs are unknown admin accounts, strange pages in Google results, visitors redirected to other sites, a red browser warning, and email going to spam. Search Google with site:yourdomain.com plus words like casino or viagra, and check your admin user list.
Will my Google rankings come back after a hack?
Often they can, after the hack is fully cleaned up and you ask Google to review the site. How long it takes depends on how long the hack ran and how much spam was added, so no one can promise a timeframe.

Keep reading

Hacked website cleanupFind how they got in and what they left, with exact cleanup steps.WordPress Homepage Defaced: Recover Step by StepHomepage replaced with a 'hacked by' message? Follow this triage order: copy the evidence, restore clean, find the entry point, harden, then go live.Website Hacked? Who to Report It To, in OrderFound your site hacked? Here is who to contact and in what order: host, Google, payment processor, police. Includes evidence checklist and message templates.Domain Hijacking: How to Prevent ItWhat domain hijacking is, how it differs from DNS hijacking and typosquatting, the registrar settings that stop it, and what to do in the first hour.WordPress CVE-2026-119977 Exploited: Update to 7.1.4CISA says CVE-2026-119977 is being exploited. Check your WordPress version, update to 7.1.4 (or 7.0.8), and look for signs of trouble. Plain steps.Advanced IP Blocker Flaw: Update TodayA critical flaw (CVE-2026-104732) in Advanced IP Blocker lets attackers skip passwords on 2FA accounts. See who is affected and how to fix it today.Free website security checkInstant passive recon: subdomains, tech stack, DNS and headers.Transparent pricingFree check · $49 Essential audit · Pro from $99 a month.More from the blogPractical website security guides.Free tool: Robots.txt Tester and GeneratorTest any URL against your robots.txt as Googlebot or an AI crawler, or build a new file.Free tool: Incident Response Plan GeneratorA short plan with roles, first-hour steps and playbooks for a small business.

See what attackers see, for free

Run the free passive check on your website. No login, no impact on your site, results in seconds.

Ready for the full manual audit? See pricing

Published by Bug Circuit. Written with AI assistance and reviewed for accuracy before publishing.