How to Check If Your WordPress Site Is Hacked (7 Signs + 6 Free Checks)

How to check if WordPress site is hacked – magnifying glass revealing a hidden bug and broken padlock on a website

A business owner once messaged me on WhatsApp: “Bhai, my site looks fine on my laptop, but customers say it opens a betting site.”

They had opened the site again and again on their own computer. Homepage, contact page, products. Everything looked normal.

That is the tricky part. Many hacks are built to hide from the site owner. So if you want to know how to check if WordPress site is hacked, the answer is not “open it and look”. You have to check it the way a stranger, a phone and Google see it.

I’m Muhammad Talha. I do WordPress malware cleanup, backdoor removal and hardening for business sites, and the first thing I do on every job is confirm the hack properly.

Below are the 7 signs I look for, 6 free checks you can run today, and how to tell a hack from a site that’s just broken.

Warning signs of a hacked WordPress site – redirect arrow, unknown admin user, browser warning, spam search results and slow speed gauge

Why a Hacked Site Can Look Normal to You

Hackers don’t want you to notice, so a lot of malware uses a trick called cloaking.

The site shows one version to you and a different one to everyone else. It usually looks like this:

  • It hides from logged-in admins. If you are logged into WordPress, you see the normal site.
  • It shows spam only on mobile. Desktop looks clean, but phones get redirected.
  • It targets visitors from Google. Typing your URL works fine, but clicking your site in search results sends people somewhere else.
  • It hits first-time visitors only. The redirect fires once, then sets a cookie so the same person sees the normal site next time.

So “it works for me” proves nothing. You are the one visitor the malware is designed to skip.

7 Signs Your WordPress Site Is Hacked

When people ask me how to know if your WordPress site has been hacked, these are the signs I look for first. One sign alone doesn’t always mean a hack, but two or more together is a strong warning.

1. It Redirects to Spam Sites

Visitors land on a betting, adult or fake pharmacy site instead of yours. Often it only happens on mobile or from Google results, so owners miss it for weeks.

2. Google or Your Browser Shows a Warning

Google search shows “This site may be hacked” under your listing, or Chrome shows a red “Deceptive site ahead” screen. These come from Google’s own scanning, so take them seriously even if the site looks fine to you.

3. Spam Pages Show Up in Google

Google shows pages under your domain that you never made: Japanese titles, cheap medicine or casino keywords. Hidden code creates them, so they often don’t appear in wp-admin.

4. Unknown Admin Users in WordPress

If Users shows an administrator you don’t recognise, treat it as a hack until proven otherwise. Attackers add admin users so they can come back later.

5. You Can’t Log In or Your Password Stopped Working

Your correct password fails, your admin email changed, or your user is missing. If your details changed without you, someone else has been inside.

6. Strange or Recently Modified Files

You find PHP files inside wp-content/uploads. That folder should hold images and documents, not code. Or .htaccess, wp-config.php or index.php show a recent modified date when nobody touched them.

7. Sudden Slowdown, Spam Emails or a Hosting Suspension

Malware often uses your server to send spam or attack other sites. The site gets slow, your emails land in spam, or your host suspends the account.

Not every suddenly slow site is hacked, but a slowdown out of nowhere is worth checking. A sudden traffic drop in your GA4 tracking can also be an early sign that visitors are being sent somewhere else.

How to Check If Your WordPress Site Is Hacked: 6 Free Checks

You don’t need paid tools for this. Here is my routine for how to check if WordPress site is hacked before I touch a single file.

Check 1 – Open Your Site Logged Out on Your Phone

Open an incognito or private window on your phone. Turn off Wi-Fi and use mobile data, not the office Wi-Fi. Then visit your site and click around: homepage, a blog post, a product page.

Mobile data matters because some malware skips IPs it has already seen, like your office. Incognito means no login and no old cookies.

Check 2 – Search site:yourdomain.com on Google and Click a Result

Type site:yourdomain.com into Google, using your real domain. Scroll through the results and look for Japanese titles, pharma or casino words, or pages you never created.

Then click two or three results. This catches redirects that only fire for visitors coming from Google.

Check 3 – Check Google Safe Browsing and Search Console Security Issues

Enter your domain in Google’s Safe Browsing site status tool. It tells you if Google currently flags your site as unsafe.

In Search Console, open Security & Manual Actions → Security issues. Google lists hacked content it found there, often with example URLs. You’ll also need Search Console to request a review after cleanup.

Check 4 – Review Users and Plugins in wp-admin

Go to Users → All Users and filter by Administrator. Every admin should be someone you know and still trust.

Then open Plugins. Look for plugins you never installed, odd names with no description, and a “Must-Use” tab if one appears.

Check 5 – Run a Malware Scan and Core File Check

Install a reputable security plugin from wordpress.org and run a full scan. Most also compare your core files with the official versions.

If your host gives you SSH access with WP-CLI, run wp core verify-checksums. Any file it reports as modified or unexpected needs a closer look.

One important point: a clean scan is a good sign, not a guarantee. Scanners can miss new or well-hidden malware, and some backdoors look like normal code.

Check 6 – Look at Recently Modified Files in Hosting File Manager

Open File Manager in cPanel (or your host’s panel) and sort files by last modified date. Look at public_html, wp-content/plugins, wp-content/themes and wp-content/uploads.

Files changed on a day nobody updated anything deserve a look. A PHP file inside uploads is a red flag on almost any site.

Is My WordPress Site Hacked or Just Broken?

Not every problem is a hack. Some of the “my site is hacked” messages I get turn out to be a broken update, a cache issue or a security lockout.

Here is how I tell them apart:

SymptomLikely a hack if…Likely NOT a hack if…
RedirectsIt sends visitors to spam or unknown domainsIt sends visitors to your own https or www version after an SSL change
Slow siteIt comes with spam emails, high CPU usage and unknown filesIt started after adding heavy plugins, or the site has no caching
Old or wrong content showingYou see spam text you never wroteThe cache wasn’t cleared after your edits
Can’t log inYour password was changed or your admin user is goneYou forgot the password or a security plugin locked you out
Google warningSafe Browsing flags your siteNone. Warnings are never a false alarm, treat them seriously

Still asking yourself “is my WordPress site hacked?” Run the six checks above. They will usually point one way.

Hacks I Find Most Often on Pakistani Business Sites

The malware changes, but the way hackers get in is usually the same. These are the entry points I keep finding:

  • Nulled or pirated themes and plugins. “Free” premium plugins from random sites often come with a backdoor already inside.
  • An old developer still has access. The developer moved on years ago, but their admin account or hosting login still works.
  • Old unused sites on the same hosting account. A forgotten test site gets hacked, then infects every site on that account.
  • Plugins not updated for months. Known security holes in old plugin versions are an easy way in. An outdated PHP version on the server is a similar risk; see what to do about PHP vulnerabilities in WordPress.
  • Shared cPanel passwords on WhatsApp groups. Once a password is shared with many people, you can’t control where it goes.

What to Do If the Checks Confirm a Hack

If your checks confirm a hack, do these four things first:

  • Don’t delete anything yet. Deleting files randomly can break the site and remove clues about how the hacker got in.
  • Take a backup of the infected site. Yes, the infected one. You need it for investigation and as a fallback.
  • Change all passwords. WordPress, hosting/cPanel, FTP, database and email accounts.
  • Contact your host. They can see server logs and may already know about the problem.

The official WordPress.org guide on hacked sites is a good reference for the cleanup itself.

After cleanup, Google has to recrawl your site before the warnings and spam results disappear. If your pages dropped out of search after a hack, my guide on why a website is not showing on Google explains how to use Search Console to get back in.

10-Minute Hack Check (Checklist)

Save this and run through it whenever something feels off.

TaskWhy It MattersDone?
Open your site in incognito on mobile dataCatches mobile-only and first-visit redirects☐
Search site:yourdomain.com on GoogleFinds spam pages Google has indexed☐
Click 2–3 of your Google resultsCatches redirects that only target search visitors☐
Check Google Safe Browsing statusShows if Google warns people about your site☐
Check Search Console → Security issuesGoogle lists hacked URLs it has found☐
Review all admin usersUnknown admins are a common backdoor☐
Review installed and Must-Use pluginsFake or unknown plugins can hide malware☐
Run a malware scan and sort files by modified dateFinds changed core files and PHP in uploads☐
10-Minute Hack Check

When to Get Professional Help

Get professional help if:

  • The signs keep coming back after you clean the site
  • You can’t log in to WordPress or your hosting
  • The Google warning won’t go away
  • It’s a WooCommerce store with customer data
  • Scans say clean, but customers still see spam or redirects

That last case usually means a backdoor the scanner missed, and it needs a manual check.

I offer WordPress security for business sites: malware cleanup, backdoor removal, hardening and monitoring. If you need a hacked WordPress site fix, I’ll find how they got in and close the door. You can also learn more about me as a WordPress developer in Lahore.

FAQs

Can my WordPress site be hacked without me knowing?

Yes. Many hacks use cloaking, so they hide from logged-in admins and only show spam to mobile users, Google visitors or first-time visitors. That’s why you should check your site logged out, on mobile data, and through Google search results.

How do I check my WordPress site for malware for free?

Open your site in incognito on mobile data, search site:yourdomain.com on Google, check Google Safe Browsing and Search Console, review your admin users and plugins, run a scan with a free security plugin, and look for recently modified files in your hosting file manager.

Why does my site redirect only on mobile?

Hackers target mobile visitors because site owners usually check their site on a desktop while logged in. The malicious code checks the visitor’s device and only redirects phones, so the hack stays hidden from the owner for longer.

If a security plugin says my site is clean, is it 100% safe?

No. A clean scan is a good sign, not a guarantee. Scanners can miss new or well-hidden malware and backdoors. If customers still report redirects or spam, the site needs a manual check.

Final Thoughts

When people ask me how to check if WordPress site is hacked, my first answer is always the same: don’t trust “it works for me”.

Check your site logged out, on your phone, using mobile data. Check what Google shows with a site: search and Safe Browsing. Check your users, plugins and recently changed files.

If the signs point to a hack, act fast. Every day it stays live hurts your rankings and your customers’ trust.

Want to go through these 10 questions together?

Send me a message on WhatsApp — I’ll answer each one for your project.

Share:
WhatsApp
LinkedIn
Picture of Muhammad Talha

Muhammad Talha

Muhammad Talha is a WordPress Developer in Lahore with experience building fast, SEO-ready WordPress, WooCommerce and Shopify websites for businesses in Pakistan, Ireland and the USA.

On this page

Need a WordPress site?

Get a rough estimate for your project in 2 minutes.

Scroll to Top