Maintenance

Signs Your Website Has Been Hacked, and What to Do in the First Hour

Most site owners hear about a hack from a customer, a host or a Google warning. These are the signs worth checking, the false alarms to rule out, and the steps to take in the first hour so the cleanup is faster and the attack does not come back.

Yellow "Danger of death" warning sign bolted to a weathered utility pole against dark trees

Most website owners find out they have been hacked second-hand. A customer mentions a strange redirect, the hosting company suspends the account, or Google starts showing a red warning page in front of the site. By then the attacker has usually been inside for days or weeks, and the next hour decides whether the damage stays contained or spreads to your email, your customers and your search rankings.

Through our hacked website cleanup and security work we see the same early signs again and again, and the same well-meant first moves that make a cleanup harder. This is what to look for, and what to do, in order, before anyone starts deleting files.

Signs Your Visitors Notice First

Attackers want their changes to stay hidden from you and visible to everyone else, so the public symptoms are often ones you cannot reproduce when logged in:

  • Redirects you cannot see. Visitors arriving from Google, or on a phone, are sent to a gambling, pharmacy or fake prize page, while typing the address directly works fine. Many injections deliberately skip logged-in administrators and repeat visitors.
  • Browser warnings. Chrome, Firefox and Safari use Google Safe Browsing and similar lists, and show a full-screen "Dangerous site" or "Deceptive site ahead" page when the site is flagged.
  • Strange search results. Searching site:yourdomain.com shows pages you never created, often in Japanese or full of product names and discount codes, or your real pages appear with spammy titles.
  • Pop-ups, fake CAPTCHA prompts or unexpected downloads that appear only some of the time.
  • Customers receiving odd emails that appear to come from your domain, or reports that your messages are suddenly bouncing.

Signs Behind the Scenes

Some of the clearest evidence is in places only you or your developer can check:

  • Admin accounts you do not recognise, or existing accounts whose email address has changed.
  • Recently modified files that nobody touched. PHP files inside an uploads folder, an altered .htaccess, a changed wp-config.php or index.php, or plugin folders with names that imitate real ones.
  • A Security Issues notice in Google Search Console, or a new owner listed under Users and permissions that nobody in your team added.
  • Unexplained load. CPU or bandwidth spikes, a mail queue full of outgoing messages, or a hosting warning about spam or resource abuse.
  • Scheduled tasks you did not create, in the server crontab or inside the CMS's own scheduler.
  • Your domain or server IP listed on a blocklist, which often shows up first as email delivery problems.

Things That Look Like a Hack but Usually Are Not

Not every alarming symptom is an intrusion. Before treating the site as compromised, rule out the boring explanations:

  • An expired SSL certificate or domain, which triggers browser warnings of a different kind.
  • A white screen or error page after an automatic plugin or PHP update. Our guide to common WordPress errors covers the usual culprits.
  • A third-party script, such as an advertising or chat widget, misbehaving on its own servers.
  • Spam submitted through your own contact form, which looks alarming in the inbox but does not mean the site itself is compromised.

If two or more of the signs above appear together, though, assume a compromise until proven otherwise.

The First Hour: What to Do, in Order

  1. Do not delete anything yet. Removing suspicious files straight away destroys the evidence of how the attacker got in, and that entry point is what decides whether the hack comes back.
  2. Take a full copy of the current state. Download all files and export the database, and save the web server access and error logs. Hosts often keep logs for only a few days, so this is time-sensitive.
  3. Limit the damage. If the site is redirecting visitors or serving malware, put it behind a maintenance page or restrict access by IP at the server or firewall level. A few hours offline is better than infecting customers.
  4. Change credentials from a clean device. Hosting control panel, SFTP or SSH, database user, every CMS administrator, and the email accounts tied to them. In WordPress, regenerate the security keys and salts in wp-config.php, which signs out every existing session, including the attacker's.
  5. Review users and access. Note any unfamiliar admin accounts, API keys or Search Console owners, then remove them once your copy is safely stored.
  6. Tell your host. They can confirm whether other sites on the same account or server are affected and may already have scan results or a timeline.
  7. Write down what you know. When symptoms started, who reported them, and any recent changes such as new plugins, new staff accounts or a password shared by email.

None of this needs deep technical knowledge, and all of it makes the actual cleanup faster and more reliable.

What Not to Do in a Panic

  • Restoring last month's backup and calling it fixed. If the vulnerability that let the attacker in is still there, the same automated tools will find it again, sometimes within hours. The backup may also already contain a dormant backdoor.
  • Trusting a single plugin scan. Security plugins are useful, but they run inside the compromised site and can miss code hidden in the database, in unusual file types or outside the web root.
  • Requesting a Google review too early. Ask Google to re-check only once the site is genuinely clean; a failed review delays the next one.
  • Keeping quiet if customer data may be involved. If the site handles accounts, orders or form submissions with personal data, take advice on your notification obligations early, not after the cleanup.

After the First Hour

A proper cleanup compares every file against known-good copies of the CMS, theme and plugins, searches the database for injected content and rogue options, finds the entry point in the logs, patches it, and then hardens the site so the same route is closed. Hosting configuration is often part of that, from file permissions to PHP versions, which is where our web hosting and server management team comes in. If outgoing mail was abused, your domain's sending reputation may need repair through email deliverability work as well.

Once the site is clean, an independent review is worth considering, especially if the entry point was never conclusively found. Our article on what a website security audit actually covers explains what that involves, and ongoing website maintenance and support keeps the updates and monitoring in place that stop most of these attacks in the first place.

If you are looking at any of these signs right now, contact us with your site address and what you are seeing. We will tell you quickly whether it looks like a compromise and what to protect first.

Frequently Asked Questions

Why does my site look normal to me when customers say it redirects?

Many injected scripts check who is visiting before acting. They skip logged-in administrators, visitors who type the address directly or people who have already been redirected once, and target mobile users or anyone arriving from a search engine. Testing from a private window on a phone, clicking through from a Google result, is often the quickest way to see what customers see.

Will my hosting company clean the site for me?

Some hosts will run a malware scan or restore a backup, and many will suspend an account that is sending spam or serving malware. Few will investigate how the attacker got in or patch the application itself, because that sits outside their responsibility. Ask exactly what they will do, and plan for the application-level cleanup and hardening separately.

How long does it take to get a Google warning removed?

Once the site is clean, you request a review from the Security Issues report in Google Search Console. Reviews for malware and phishing warnings are often completed within a few days, though they can take longer. A request made before the site is fully clean will fail and delay the process, so it is worth waiting until the cleanup has been verified.

Should I take the website offline while it is hacked?

If it is redirecting visitors, showing phishing pages or offering downloads, yes: a maintenance page or an IP restriction protects your customers and your reputation. If the only sign is spam pages in search results, keeping the site up while it is cleaned is usually acceptable. Take a full copy of files, database and logs before changing anything either way.

Can a small business website really be a target?

Most website attacks are automated rather than personal. Bots scan huge numbers of sites for known vulnerable plugins, weak passwords and outdated software, and compromise whatever they find. A small site is valuable to them for its search reputation, its email sending and its visitors, not for anything specific about the business, which is why routine updates matter more than size.

How We Can Help

Services Related to This Article

The work we do with the technologies discussed above — with pricing, process and real examples on each page.

  • Hacked Website Cleanup & Security

    Malware removed, the entry point closed, blacklists cleared and the site hardened so it does not happen again — usually within a day.

  • Hosting, Server & DNS Management

    Nginx, Apache, Docker and cloud servers configured, secured and kept running — plus DNS, SSL and Cloudflare set up correctly the first time.

  • Email Deliverability & Transactional Email

    Order confirmations, form notifications and password resets that actually arrive — SPF, DKIM and DMARC done right, and SMTP that works.

  • Website Maintenance & Support

    Proactive updates, backups, monitoring and on-demand fixes that keep your website secure, fast and always online.

In Practice

Case Studies on This Topic

Projects where we put these ideas to work, each with a live demo.

  • Chair Dentist — Bright Dental Group
    • WordPress
    • Custom theme
    • Wix & Squarespace export

    Website Migration

    Dental Group Website Migration

    Nine practice sites on Wix and Squarespace consolidated into one WordPress site — organic clicks up 74%.

  • Red Tractor — Field & Furrow Supplies
    • WordPress
    • WooCommerce
    • PHP

    WooCommerce eCommerce

    Tractor Cleaning & Equipment Care – WooCommerce Store

    A WooCommerce online store for tractor cleaning, equipment maintenance, paint correction, oxidation removal and foam cleaning products.

  • Farm Greenhouse — Fern & Field
    • WooCommerce
    • WordPress
    • PHP 8

    WooCommerce eCommerce

    Garden Nursery Store with Seasonal Availability

    A WooCommerce store where stock follows the growing season, with delivery weeks chosen at checkout.

Keep Reading

  • Yellow hard hat, safety glasses, work gloves and orange earplugs laid out on a wooden surface

    Stopping SEO Spam Hacks From Coming Back After a Cleanup

    Japanese keyword, pharma and casino spam hacks have a habit of returning weeks after a cleanup. Here is why they come back, what a cleanup that holds involves, and how to clear the spam from Google and catch any reinfection early.

  • Website migration dashboard on a laptop and phone listing old URLs mapped to new pages with redirect status, clicks and redirects mapped

    Replatforming Without Losing Search Traffic: The Redirect Plan

    Most traffic lost in a website migration is lost through missing or careless redirects. Here is how we list every old URL, map it to the right new page, implement redirects properly and test them before and after launch.

  • Shelves of white numbered storage boxes labelled 649 to 652 in an archive room

    Website Backups That Actually Restore: What to Back Up, Where and How Often

    Most sites have backups; far fewer have ever restored one. Here is what a complete website backup contains, how often to take it, where to keep it safe from failures and attackers, and how to test that it really brings the site back.

Let’s Connect

Let’s Build Something Amazing Together

Share your project details and our experts will get back to you within one business day with the best solution — free consultation, no obligation.