Skip to content
Hosting Calculator Site check

News

How do I know if my website has been hacked?

How can you tell if your website has been hacked? 8 signs, from spam pages on Google and odd redirects to unknown admin users, and what to do straight away.

  • 3 min read
  • Eleni Pristai
How do I know if my website has been hacked?
In this article
  1. 8 signs your site has been hacked
  2. How to check it yourself
  3. If you find something, what to do straight away
  4. Want someone to watch it for you?

Your site looks normal. And yet a customer tells you it sent them to a strange website. Or Google shows pages of yours that you never wrote. And fear sets in: has someone got in?

It’s fair to worry. Most hacks aren’t visible at first glance. Whoever breaks into a site usually wants to use it quietly: for spam, for redirects or to send email. The quieter, the better for them. That’s why it’s worth knowing the signs.

8 signs your site has been hacked

  1. A Google or browser warning. A red page such as “Deceptive site ahead” or a message that the site may harm your computer.
  2. An alert in Search Console. In the “Security issues” report, Google tells you if it found hacked content or malware.
  3. Pages you didn’t create, on Google. Type site:your-domain.gr. If you see pages about pharmaceuticals, casinos, Japanese characters or products you don’t sell, something is wrong.
  4. Redirects to other sites. They often happen only on mobile, only when coming from Google or only on the first visit. That’s why you, logged in as an administrator, may never see them.
  5. Unknown users with administrator rights. Go to Users → All Users and filter by “Administrator”. Any name you don’t recognise is a red flag.
  6. Your host tells you you’re sending spam or suspends the account. Or your own emails suddenly land in everyone’s spam folder.
  7. Unknown or modified files. .php files inside wp-content/uploads, files with odd names in the root, changes to .htaccess or wp-config.php that you didn’t make.
  8. Sudden slowness or server load without a rise in real traffic. Something may be running that shouldn’t be.

How to check it yourself

  • Sucuri SiteCheck: a free remote scan. It only sees what is public, so a “clean” result doesn’t necessarily mean a clean site.
  • Google Transparency Report: shows whether Google considers your site dangerous.
  • A scan from inside WordPress with a plugin such as Wordfence. See which one to choose in What is the best security plugin for WordPress?.
  • File checks with WP-CLI, if you have SSH access: wp core verify-checksums compares WordPress files with the official ones, and wp plugin verify-checksums --all does the same for plugins from WordPress.org.

If you find something, what to do straight away

  • Don’t panic and don’t delete everything. Keep a copy of the current state, because it will be needed to find out how they got in.
  • Change all passwords: WordPress, hosting, FTP/SFTP, database, email.
  • Tell your hosting provider. They may already have scanning tools and logs.
  • Clean up or restore from a clean backup, and then close the gap they used: usually an old plugin or theme, or a stolen password.

If you only restore a backup without closing the gap, they usually get back in.

Want someone to watch it for you?

The best time to discover a hack is before your customers or Google see it.

At SmartHost our servers have account isolation (CloudLinux, CageFS), a firewall and malware scanning with Imunify360. We run a WordPress security audit with a written report, and with our WordPress maintenance we keep the site updated, check for suspicious files and keep backups. If something happens, we catch it early and you sleep peacefully.

Suspect your site has been hacked? Get in touch with us at info@smarthost.gr or +30 210 569 8010, or learn more at smarthost.gr.