Hackers rarely deface a website any more. They want it to keep working, quietly, so they can use it to sell spam, send emails or redirect your visitors. That is why so many owners only find out months later, when their Google rankings fall or a customer mentions something odd.
In short
- Search Google for site:yourdomain.com.au: spam or foreign pages mean trouble
- Check for admin users and plugins you do not recognise
- Never just delete one bad file: hackers leave several back doors
- Updates, two factor login and off site backups stop most hacks
Eight warning signs
Strange pages on Google
Search site:yourdomain.com.au. Japanese pages, designer goods, pharmacy or casino spam mean a hack. It is often only shown to Google, so the site looks fine to you.
Visitors sent elsewhere
Some hacks redirect visitors to scam sites, but only on phones or only when they arrive from Google.
Warnings from Google
"This site may be hacked" under your listing, or a red warning in Chrome. Check Security issues in Search Console.
Unknown admin users
Look at every Administrator in WordPress. Hackers add harmless sounding accounts or change the email on an old one.
Plugins or files you did not add
Fake plugins with professional names, and files named to look like WordPress itself, hide back doors.
Your host warns you
A warning email, a suspended account or a sudden jump in server load are worth taking seriously.
Emails start bouncing
Hacked sites send spam, which gets your domain blacklisted, so normal business emails stop arriving.
Slow for no reason
Hidden scripts generating spam pages or attacking other sites use a lot of server power.
What to do if you think your site is hacked
- Do not just delete the file you found. Hackers almost always leave several back doors.
- Back up the hacked site first. It preserves the evidence and gives you something to fall back on.
- Reinstall from clean copies. Replace WordPress, the theme and every plugin with fresh copies from the original source.
- Remove unknown users and change every password: WordPress, hosting, FTP, database and email, plus the WordPress security keys and any application passwords.
- Check the whole hosting account: scheduled tasks, old copies of the site, other folders and FTP logins.
- Clean up Google: fix the sitemap, request a review in Search Console, and make sure spam pages now return "gone".
Google was showing tens of thousands of spam pages for one business website we cleaned. There were more than 70 hidden back doors, including dozens of copies tucked away outside the website folder, where a normal scan never looks.
How to stop it happening again
- Keep WordPress, your theme and plugins updated, safely, with a backup first
- Delete plugins and themes you do not use: every one is another door
- Turn on two factor login and limit login attempts
- Stop file editing inside WordPress and block scripts in the uploads folder
- Keep regular backups somewhere other than the website server
- Use hosting where someone actually checks the site for problems
Every site we host is checked daily for planted files, unknown admin users and other warning signs, so problems are caught early instead of months later.