How to Check If Your Website Was Hacked (and How to Clean It Up)
Signs your website was hacked, how to check with Google Search Console and Safe Browsing, and step-by-step cleanup before Google flags your site.

Hacking a website used to take time and skill. Not anymore. Reuters reported that one attacker used AI agents to break into websites at more than 100 companies with just a few lines of instructions. If an AI swarm can probe 1,200 sites, it can find your small business site too.
The scary part is that many hacked sites look perfectly normal to their owners. The damage shows up elsewhere: spam pages in Google, visitors redirected to scam sites, or a “This site may be hacked” warning in search results. So how do you know, and what do you do next?
Quick answer: Check Google Search Console’s Security Issues report, run your domain through Google Safe Browsing’s site status tool, and search Google for site:yourdomain.com to spot spam pages you didn’t create. Then look for new admin users, unknown files and changed plugins. If you find a hack, take a backup, change every password, restore a clean backup or remove the malicious code, update everything, and request a review in Search Console.

Warning Signs Your Website Was Hacked
- Google warnings: “This site may be hacked” in search results, or a red “Deceptive site ahead” screen in Chrome.
- Spam pages: pages about pills, casinos or knockoff products appearing in Google under your domain.
- Redirects: visitors, especially on mobile or from Google, get sent to another site.
- New admin accounts you didn’t create.
- Unknown files on your server, often PHP files with random names.
- Sudden slowdowns or a spike in outgoing email from your server.
- Your host suspends the account or sends a malware notice.
Common Types of Website Hacks
Knowing what kind of hack you have makes cleanup faster. These are the ones small business sites see most:
- SEO spam injection: hackers add hidden pages or links to rank their own products using your domain’s reputation. You often won’t see them on your homepage.
- Malicious redirects: code sends some visitors to scam or malware sites, sometimes only mobile users or people coming from Google, so you may never notice it yourself.
- Backdoors: hidden files that let the attacker get back in even after you change passwords. This is why many cleanups fail.
- Payment skimmers: on online stores, scripts that copy card details from checkout pages. Treat this as an emergency and contact your payment provider.
- Phishing pages: fake login pages hosted on your site to steal other people’s passwords.
Step 1: Check Google Search Console
- Sign in to Google Search Console and pick your site.
- Open Security & Manual Actions, then Security issues.
- If Google found hacked content, malware or phishing, it lists the issue type and sample URLs.
- Also check Pages (indexing) for a sudden jump in indexed pages, a common sign of spam injection.
Not set up yet? Add and verify your site now. It’s free and it’s how Google tells you about problems.
Search Console also emails the site owner when it detects a security issue, so make sure the account uses an email address you actually read.
Step 2: Use Google Safe Browsing and a Site Search
Open Google’s Safe Browsing site status tool and enter your domain. It shows whether Google currently flags it as unsafe.
Next, search Google for site:yourdomain.com. Scroll through the results. Spammy titles in other languages or about products you don’t sell are a strong sign of a hack.
Step 3: Check Inside Your Website
- Users: in WordPress, go to Users and look for unknown administrators.
- Plugins and themes: look for ones you didn’t install, and note anything out of date.
- Files: in your hosting file manager, check recently modified files in folders like
wp-content/uploads, where PHP files shouldn’t exist. - Hosting logs: look for repeated login attempts or unusual requests.

Step 4: Clean Up a Hacked Website
- Back up the current site, even infected, so you have evidence and nothing gets lost.
- Change every password: hosting, FTP/SFTP, database, CMS admins and email. Turn on two-factor authentication.
- Restore a clean backup from before the hack, or remove malicious files and code by hand. Replace core files with fresh copies.
- Update everything: CMS, themes and plugins. Delete ones you don’t use.
- Remove unknown admin users and reset security keys.
- Scan again with your host’s malware scanner or a security plugin.
- Request a review in Search Console’s Security issues report once it’s clean.
If you can’t find the source, hire a professional cleanup service or ask your host for help. A hack that’s only half-cleaned usually comes back.
When to Call a Professional
Do-it-yourself cleanup works for simple spam or a single bad plugin. Bring in help if your site handles payments or customer data, if the hack keeps coming back after you clean it, if your host has suspended the account, or if you aren’t comfortable editing server files. A professional cleanup usually costs far less than lost sales and a damaged reputation. If customer data may have been exposed, check whether your state requires you to notify affected customers.
How to Protect Your Site From AI-Powered Attacks
- Turn on automatic security updates where possible.
- Use two-factor authentication for every admin account.
- Limit login attempts and use a web application firewall, such as Cloudflare.
- Keep daily off-site backups and test restoring them.
- Remove unused plugins, themes and old admin accounts.
We’ve covered real examples recently, including the exploited WP Rocket flaw and the ARTEX AI hacking tool. Also check if your passwords leaked with our guide to checking exposed passwords.
FAQs
How do I know if my website has been hacked?
Check Search Console’s Security issues report, Google Safe Browsing, and a site: search for spam pages.
Can a hacked website be fixed?
Yes. Back up, change passwords, restore a clean backup or remove malware, update everything, and request a Google review.
How long does Google take to remove a hacked warning?
Google says reviews for hacked sites can take several days after you request one.
Why would hackers target a small website?
Automated and AI-driven attacks scan thousands of sites for known weaknesses, regardless of size.
Featured image: TheTechHacker.
Disclosure: TheTechHacker has no paid relationship with the companies in this article, and this post has no affiliate links.
More in News

Optimizely Hack Planted Malicious Code on Sites of 178 Organizations, Including CNN and Zoom
Optimizely says attackers abused a flaw to add malicious code to customer sites on Nov 16. What happened, which brands were hit and what to do now.

Hackers Exploit Critical WP Rocket Flaw: How to Check and Protect Your WordPress Site
Hackers are exploiting WP Rocket flaw CVE-2026-125812. Update to 3.24.2, turn off two risky options and check for planted files.

AI Agents Hacked 100+ Company Websites. Now Business Leaders Are Fighting Over Who Pays
A hacker used AI agents to breach 100+ company websites. At Reuters NEXT, business leaders split over whether AI makers should pay. What to know.
The week in tech, minus the noise.
New reviews, fixes and the stories that matter — once a week, straight to your inbox.
We only use your email to send the newsletter. Unsubscribe any time. See our privacy policy.

Comments