99.9% Live Uptime Free .co.ke Domain on Business Plans →

How to Know If Your Website Has Been Hacked (and What to Do Next)

Not every hack is obvious. Some are loud and disruptive, such as a defaced homepage. Others run quietly in the background for weeks, sending spam, redirecting a share of your visitors or hosting malicious files, until your search rankings collapse or your host suspends the account. Knowing the signs lets you act while the damage is still small.

Obvious warning signs

  • Visitors are redirected to unfamiliar or suspicious websites, sometimes only when they arrive from Google or on mobile.
  • Content you did not add: strange pages, links, ads or pop-ups.
  • Your homepage is defaced or replaced with a message.
  • Google or your browser warns visitors: "This site may be hacked", "Deceptive site ahead" or "This site may harm your computer".
  • Your host suspends the account for abuse, spam or malware that you did not knowingly cause.
  • You cannot log in, and your admin password no longer works.

Subtler warning signs

  • Sudden drops in traffic or rankings without an obvious reason.
  • Unknown admin users in your CMS user list.
  • New files in your site folders that you do not recognise, especially with random names.
  • Unusual resource usage: CPU spikes, slow responses, or an unexpected rise in outbound traffic.
  • Customers receive suspicious emails that appear to come from your domain.
  • Your emails bounce or land in spam because your server was blacklisted.
  • Odd Search Console messages about security issues or spam pages.
  • Search results show foreign-language or pharmaceutical titles for your pages (a typical SEO spam injection).

How to check

  1. Look at your site in an incognito window on desktop and mobile, arriving from a search result as well as directly.
  2. Search site:yourdomain.co.ke on Google and scan the results for pages or titles you do not recognise.
  3. Check Google Search Console under Security issues and Manual actions.
  4. Review users in your CMS and your hosting control panel.
  5. Check file changes. In cPanel's File Manager, sort by modified date and look for recent changes in places you did not edit.
  6. Run a malware scan with your host's scanner or a security plugin.
  7. Ask your host to review logs and resource usage.

What to do immediately

  1. Stay calm and do not delete everything. You may need evidence to find how it happened.
  2. Contain it. Put the site in maintenance mode or temporarily take it offline to protect visitors.
  3. Change all passwords: hosting, CMS admin, FTP, database and email. Do this from a clean computer.
  4. Contact your host. A good host can help identify and isolate the issue quickly. Contact us if you are with us.
  5. Restore from a clean backup taken before the compromise, if you have one. See how often to back up.
  6. Find and close the entry point. Update the CMS, plugins and themes; remove any vulnerable or unused ones and delete unknown users.
  7. Scan again to confirm it is clean, and check scheduled tasks and database content, not just files.
  8. Request a review in Google Search Console if the site was flagged.
  9. Tell people if needed. If customer data may have been exposed, notify them and consider your obligations under data protection law.

After the cleanup

  • Enable two-factor authentication and strong, unique passwords.
  • Turn on automatic updates or schedule regular maintenance.
  • Add a web application firewall, malware scanning and network protection such as DDoS protection.
  • Keep an independent off-site backup.
  • Monitor uptime and file changes so you hear about the next problem quickly.

The prevention checklist is in how to secure a WordPress site and common website security mistakes.

Cleanup cost vs prevention cost

Emergency cleanup is unpredictable and urgent, while routine maintenance is cheap and scheduled. A hacked site also costs you lost sales while it is down, search ranking damage and customer trust. See why regular maintenance saves money.

Frequently asked questions

Can a site be hacked without any visible change?

Yes. Many attacks are designed to stay hidden, for example to send spam or redirect only search traffic. That is why monitoring matters.

Will Google remove my site from search?

It can flag or demote a site that distributes malware or spam, and it may show warnings. Cleaning the site and requesting a review restores normal status.

How long does cleanup take?

From minutes with a clean backup to days for a deeply infected site. Preparation makes the difference.

Should I pay a ransom?

Do not engage. Restore from backups and report it where appropriate.

Need help right now?

If you suspect a compromise, contact us immediately. The faster it is dealt with, the less damage and cleanup.