---
title: "How do I check whether my website has been hacked?"  
description: "How do I check whether my website has been hacked?"  
author: "Jithin Menon"  
published: 2026-11-19  
updated: 2026-11-19  
canonical: https://www.mindstick.com/forum/163087/how-do-i-check-whether-my-website-has-been-hacked  
category: "Cloud and Security"  
tags: ["Website Security", "hacked website", "malware", "incident response", "cybersecurity"]  
reading_time: 2 minutes  

---

# How do I check whether my website has been hacked?

Visitors say our site sometimes redirects to a strange page, but I cannot see it myself. How do I find out whether we were hacked?

## Replies

### Reply by Ayush Rawat

That symptom (redirects only for some visitors) is a typical sign of compromise. Other signs: unknown admin users, files changed recently, strange pages or links in search results, Google "This site may be hacked" warnings, a sudden traffic or CPU spike, and outgoing spam.

How to check:

- Look at **recently modified files** and compare them with your clean source in Git or a known-good backup.
- Search for **suspicious code**, such as obfuscated JavaScript, `eval`, base64 strings, or script tags pointing to unknown domains, in files, templates and database content.
- Review **user accounts**, database content and scheduled tasks.
- Read **server and access logs** for unusual requests and logins.
- Check Google Search Console's Security issues, and scan with tools such as Sucuri SiteCheck or your host's scanner.
- View the site from a **mobile device and with a different referrer** (such as from Google), since some malware hides from the owner.

If confirmed: take a copy for evidence, **change all passwords and keys**, remove the malicious code and backdoors (or restore a clean backup), update everything, find how they got in, and then harden. If customer data may be affected, follow your legal duties to report it.


---

Original Source: https://www.mindstick.com/forum/163087/how-do-i-check-whether-my-website-has-been-hacked

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
