Is my WordPress site hacked? How to tell, and what to do first

Published . By Olivier Vallo González.

If your site sends visitors somewhere else, shows pages you never wrote, or Google is warning people away from it, treat it as hacked until someone proves otherwise. The first hour matters more than the first week: lock the accounts that still work, keep the evidence, and get a clean copy in front of your customers before you start investigating. Here is how to tell, what to do in order, and what to have ready when you call for help.

How to tell if your WordPress site has been hacked

Some signs are visible to anyone. Others only show up in tools you may not check often. Any one of these is enough to act on.

  • Redirects. Your address opens, then jumps to a pharmacy, gambling or "your computer is infected" page. Often it happens only on phones, only from a Google result, or only the first time, which is why owners miss it for weeks.
  • Pages you never wrote. Search Google for site:yourdomain.com. Hundreds of results for designer handbags, casinos or medication, often in Japanese or Chinese, mean the attacker is using your domain's reputation to sell for them.
  • A warning in the results or the browser. "This site may be hacked" under your listing, or a red "Deceptive site ahead" screen in Chrome, comes from Google Safe Browsing. Search Console shows the detail under Security Issues.
  • An email from your host saying the account was suspended for malware or for sending spam. Hosts scan outgoing mail; a hacked site is often used as a spam relay before it does anything visible.
  • Admin users you don't recognize under Users in the WordPress dashboard, or an email saying your admin password was changed when you didn't change it.
  • Files that don't belong. PHP files inside wp-content/uploads, which should only hold images and documents, or a changed .htaccess or index.php with a block of scrambled text at the top.
  • Forms and email misbehaving. Your contact form stops arriving, or customers tell you they got strange mail from your address.
  • Your security plugin or host reports modified core files. WordPress core files should match the official release byte for byte. Any difference is a finding.

What to do in the first hour

Do these in order. Each step protects the next one.

  1. Change the passwords that matter most, starting away from WordPress. Your hosting account, your domain registrar and the email address those accounts recover to. If an attacker holds any of those, cleaning the site is pointless. Turn on two-factor sign-in on each one while you're there.
  2. Then change the WordPress passwords. Every administrator account. Remove any user you don't recognize. If you can't sign in, your host can reset it from their side.
  3. Put the site in maintenance mode or behind a firewall. If the site is actively redirecting customers or spreading malware, a plain "we'll be back shortly" page is better than what they're seeing now. Cloudflare's free plan and most hosts can block traffic in minutes.
  4. Take a backup of the hacked site before anyone cleans it. That sounds backwards, but it preserves the evidence: file dates, the injected code, server logs. You'll want it if the cleanup misses something, if you file an insurance claim, or if a lawyer asks what was exposed.
  5. Find your last clean backup. Hosts usually keep a rolling window of days or weeks. Look at the file dates of the suspicious files to estimate when the break-in happened, and pick a backup from before that date.
  6. Write down what you saw. Which pages, what time, from which device, screenshots of the warning. Memory fades fast and support tickets go better with specifics.

What not to do: don't delete files at random, don't install three more security plugins, and don't pay a stranger who emails you offering a fix the same day. That email is often part of the same operation.

How WordPress sites get hacked

Knowing the cause tells you whether a cleanup will hold. In rough order of how often we see them:

  • An outdated plugin or theme with a known flaw. Attackers scan the whole internet for the version string, not for your business. A site nobody has updated in a year is found within days of a flaw going public.
  • A weak or reused password on /wp-login.php, which is public on every WordPress site and gets tried thousands of times a day by bots.
  • A flaw in PHP itself, such as the PHP2Shell vulnerabilities disclosed in October 2026. Updating plugins doesn't help; only the host upgrading PHP does.
  • A "free" premium theme or plugin downloaded from somewhere other than its maker, with a backdoor already inside.
  • Another site on the same hosting account. One compromised site can reach the others if the host doesn't isolate them.
  • A compromised laptop or FTP password belonging to whoever last worked on the site.

A realistic example (not a client story)

A landscaping company in Palm Beach County has a 40-page site built on Divi in 2021. The person who built it moved on, and nobody has logged in since. One morning a customer calls: Google shows the company's name over a listing for discount sunglasses. A site: search turns up more than 600 pages that don't exist in the WordPress dashboard. The host's control panel shows the account was flagged for outgoing spam two weeks earlier; the email went to the former web designer's address.

The cause was a form plugin, three versions behind, with a flaw published in the spring. The cleanup took a clean backup from before the first spam flag, every plugin updated, every password changed, and a review request in Search Console. The sunglasses pages dropped out of Google over the following weeks. The owner had never seen any of it, because the redirects only fired for visitors arriving from Google on a phone.

What to gather before you call anyone

Whether you call your host, a developer or us, the conversation goes faster with these in hand.

  • Your domain registrar and the login, or at least the email it's registered under. Look it up at lookup.icann.org if you're not sure who holds it.
  • Your hosting company and a working login to its control panel.
  • WordPress administrator access, or confirmation that you've lost it.
  • Access to Google Search Console for the domain. If nobody set it up, now is the time; it takes minutes.
  • The date you first noticed, and anything odd before that: a password-reset email, a plugin that stopped working, a spike in form spam.
  • A list of what the site does besides show pages: forms, a booking tool, a store, a members' area, a CRM connection.
  • Whether the site stores customer information. Form entries saved in the database, store orders and uploaded documents all count.

Does moving to static HTML fix a hacked site?

Not by itself, and anyone who tells you otherwise is skipping a step. A static copy made from an infected site copies the infection: the spam pages, the hidden links, the redirect code. The site has to be cleaned first, or rebuilt from content you know is yours.

What static HTML changes is what happens after. A static site has no PHP running, no database and no /wp-login.php, so the three most common ways in no longer exist. A backdoor file can't execute on a server that doesn't run code. The remaining risks are the ones no architecture removes: your registrar and hosting accounts, which need strong passwords and two-factor sign-in, and any outside script you choose to add, such as a chat widget. That is a much shorter list to watch than a WordPress install with thirty plugins.

If you want to keep editing in WordPress, there's a middle path: WordPress stays as a private editor that the public internet can't reach, and it publishes static pages. The private copy still needs its updates, and we handle them.

What we check first

When a hacked site comes to us, the order is the same every time.

  1. Who controls the domain and the hosting account today, and whether either was touched.
  2. Search Console's Security Issues report and a site: search, to see what Google has indexed.
  3. File dates and server logs, to find when it started and which plugin or account let it in.
  4. Whether a clean backup exists from before that date, or whether the content has to be rebuilt page by page.
  5. What the site needs to keep doing after it's rebuilt: forms, call tracking, booking, languages.

From there you get a plain answer: clean and keep WordPress, or clean and move to static, and what each one involves. If customers are seeing the hack right now, say so when you call, and we'll start with the holding page.

Questions people ask after a hack

Should I just delete the site and start over?

Usually no. Your content, your URLs and the links other sites have built to them are worth keeping, and rebuilding from your own clean content preserves all three. Deleting the site also deletes the evidence of what happened. Start over only if the site had little content worth saving to begin with.

Will Google penalize my site?

Google flags hacked sites to protect searchers, and it removes the flag after you clean up and request a review in Search Console. Rankings for your real pages usually recover once the injected pages are gone and Google recrawls, which takes weeks rather than days. The longer the hack stays live, the longer that takes.

Do I have to tell my customers?

If the site only showed pages and sent form emails, there's usually nothing of theirs to expose. If it stored customer information, such as form entries, orders or uploaded documents, most states have breach-notification laws that may apply, and Florida is one of them. Preserve the evidence, then ask a lawyer who handles data matters. We're not lawyers and this isn't legal advice.

Call (561) 420-6753. If the hack is visible to customers right now, say so, and the call is treated as urgent.