Website security
Has my site been hacked?
Most owners find out from a browser warning or a host taking their site offline. By then the damage is done. Here’s how to spot it sooner.
By the time a browser warns your visitors, the infection has usually been active long enough to cause harm. Your host may suspend the site, or Google may flag it for malware, SEO spam or phishing.
The answer is to check regularly and use security tools that alert you when files change, malware appears or something suspicious happens. For WordPress sites, Wordfence is one we rate.
Warning signs
Six ways you might find out.
If a customer reports it, tell them you are on it, and consider taking the site offline.
“This site may be hacked” is not the same as the malware warning. It means Google spotted unusual changes such as spam pages or redirects. “This site may harm your computer” means Google found malware.
Stay ahead
Four ways to catch it early.
Scan your source code
Infections are often hidden from visitors. A scanner such as Wordfence checks your files for malware patterns. Paid monitoring such as Pingdom can alert you within minutes.
Watch your traffic
A sudden spike can mean your domain is being used in spam. Check bot traffic too, which Google Analytics does not show.
Look at your own site
Visit a few pages every day. It takes two minutes.
Use remote scanners
They check what a visitor sees. They can miss clever infections, but catch the simple ones.
- VirusTotal.Checks your site against dozens of virus databases.
- Spamhaus.Checks your domain and IP address against its blocklists.
- Google Safe Browsing site status.Shows whether Google flags your site for phishing or malware.
Further reading
Originally published on 7 March 2019.