In this guide
The quick answer: the most common signs
You don’t need to be technical to spot most hacks. These are the signs I see most often on sites that turn out to be infected:
- Redirects. Visitors, often only on mobile or only when arriving from Google, end up on scam, gambling or adult sites.
- Strange pages in Google. Searching for your site shows Japanese text, pharmacy products, casino links or pages you never wrote.
- Warnings. Google shows “This site may be hacked” or a red “Deceptive site ahead” page, or an antivirus blocks your site.
- A message from your host saying your site appears to be infected with malware, or that it’s been suspended.
- Admin users you didn’t create, or your own password suddenly not working.
- Unknown files, especially PHP files in
wp-content/uploads. - Fake prompts on your site, such as a “Verify you are human” box asking visitors to run a command.
- Your server sending spam email, or your host warning about high resource usage.
One sign is enough to investigate. Two or more, and you can be almost certain.
Five-minute checks anyone can do
1. Search Google for your own site
Search site:yourdomain.com. Then try site:yourdomain.com viagra, site:yourdomain.com casino and site:yourdomain.com loan. Pages you never created mean an SEO spam infection, even if the site looks normal to you.
2. Visit your site like a stranger would
Use a phone on mobile data (not your Wi-Fi), in a private tab. Search for your business on Google and click the result. Many redirects only fire for visitors who come from Google, on a phone, for the first time. Exactly the kind of visit you never make yourself.
3. Check Google Search Console
If you have Search Console, open Security & Manual Actions → Security issues. If Google has found malware, hacked content or phishing, it says so there, with example URLs. Also check Settings → Users and permissions: owners you don’t recognize are a strong sign of a hack.
4. Check Google’s site status
Google’s Safe Browsing “site status” page in its Transparency Report tells you whether Google currently considers your site dangerous. Free online scanners such as Sucuri SiteCheck add a second opinion on what visitors see.
5. Look at your users
In the WordPress dashboard, open Users and filter by Administrator. Anyone you don’t recognize, especially with an odd name or an email at a strange domain, is a red flag. Some malware hides its accounts from this screen, so a clean list isn’t proof.
Deeper checks, if you’re comfortable with files
- PHP files in uploads.
wp-content/uploadsshould contain media, not code. Any.phpfile there (other than a harmlessindex.phpthat says “Silence is golden”) is suspicious. - Core file integrity. With SSH,
wp core verify-checksumslists every WordPress core file that’s been changed or added. - Recently modified files. A burst of files all modified at the same minute, in folders you didn’t touch, usually means something was injected.
- Your theme’s
functions.phpandheader.php. Scroll to the very top and bottom. Long blocks of random-looking characters,eval(orbase64_decode(are typical malware. - The database. Scripts inside posts or widgets, and strange entries in
wp_options. My database malware guide has safe, read-only queries.
False alarms worth ruling out
Not everything strange is a hack:
- Adware on your own computer can add pop-ups and redirects to every site you visit. Test on another device.
- Your own ad network may occasionally serve a bad ad. That’s the ad provider’s problem, not malware on your server.
- A plugin conflict can cause errors that look alarming but aren’t malicious.
- Old blocklist entries can linger after a site was cleaned, if nobody requested a review.
If you’ve ruled these out and the signs remain, assume it’s real.
What to do if your site is hacked
- Don’t panic, and don’t delete files at random. You can destroy the evidence of how they got in.
- Back up the site as it is, including the database.
- Change your hosting, SFTP and WordPress passwords from a computer you trust.
- Then clean it, either by following my step-by-step guide to fixing a hacked WordPress site or by having it cleaned professionally.
From my cleanup work: the most common thing owners say is “but the site looks completely normal”. That’s exactly what good malware is designed to do. The owner is the last person it wants to bother. If customers, Google, your host or an antivirus are telling you something is wrong, take it seriously even if you can’t see it yourself.