Blog

Website Compromise Checklist: What to Check When a Site Looks Wrong

A practical first checklist for site owners when a website loads, but visitors, rankings, or public signals suggest something may be wrong.

Jun 4, 2026 | 6 min read

A website can load and still have a serious public problem. That is what makes the first hour confusing. Your homepage may look fine, yet Google shows strange results, visitors report a redirect, or a tool flags a file that should never be public.

The right first step is not panic. It is to collect a few public facts before you change anything. Those facts help you decide whether this is a bad deployment, an SEO indexing issue, a hosting misconfiguration, or a real compromise.

Start with what a visitor can see

Open the site in a private browser window. Check the homepage, one product or service page, and one page that gets search traffic. Look for unexpected redirects, unfamiliar popups, broken styling, changed titles, and content that appears only on some pages.

Do the same on a phone connection if you can. Some injected redirects only trigger for mobile visitors, search crawlers, or traffic from specific countries.

Check the final URL after redirects

Redirect problems are easy to miss because the page may still end somewhere that looks normal. Check whether HTTP redirects to HTTPS, whether the final host is correct, and whether the path changes unexpectedly. A final URL on another host is a strong signal that something needs attention.

Look for public SEO spam

SEO spam often hides in titles, meta descriptions, anchor text, generated pages, or sitemap URLs. Search results may show casino, pharma, replica, or unrelated foreign-language terms even when your homepage looks untouched.

If this is what you are seeing, check page source, visible text, links, and sitemap URLs before assuming Google made a mistake.

Review robots.txt and sitemap files

Robots.txt and sitemap.xml are small files with large consequences. A broad disallow rule can damage indexing. A sitemap full of spam URLs can help search engines discover pages you never meant to publish.

Open both files directly in the browser and save a copy of what you see. If a developer or host needs to help later, that copy is useful evidence.

Check trust basics

SSL expiry, missing security headers, server errors, and exposed public files do not always mean a site is compromised. They do tell you whether the public surface is drifting away from what you expect.

When several signals change at the same time, take the issue seriously.

When to escalate

Escalate quickly if visitors are redirected to another site, Google has indexed spam pages, files such as .env or backups are publicly visible, or your CMS admin account shows unfamiliar users. Contact your host, developer, or security specialist with the public evidence you collected.

Build a short evidence timeline

Before changing plugins, clearing caches, or asking a host to restore a backup, write down what changed and when. Include the first report from a visitor, the first strange search result, the last deployment, the last CMS update, and any DNS or CDN change. A short timeline often separates a normal release issue from a compromise signal.

If more than one person can edit the site, also note who had access during that period. You do not need a perfect forensic report at this stage. You need enough context to avoid removing the only visible clue.

Compare logged-in and logged-out behavior

Many site owners check only while logged into the CMS. That can hide the problem. Open the site in a private window, then use a normal mobile connection if possible. If the site looks clean while logged in but suspicious when logged out, the problem may be in cached HTML, public templates, JavaScript, or conditional redirect rules.

Example public check summary

Final URL

https://example.com/

Expected

Robots.txt

Available, no broad disallow rule

Clean

Sitemap sample

2 suspicious URLs include unrelated product terms

Review

Public files

No common backup or config paths exposed

Clean

Decide what kind of problem you have

Public website problems usually fall into a few buckets. A configuration problem changes behavior for everyone, such as a broken redirect or expired certificate. A content problem changes what visitors or search engines can read, such as spam titles or hidden links. An exposure problem makes a file public that should not be public. A crawler problem affects how search engines discover or index your pages.

That distinction matters because the fix is different. Redirect issues may live in hosting rules or CDN settings. SEO spam may live in a CMS database, plugin, theme, or generated sitemap. Exposed files may come from deployment mistakes or backup habits.

What to send to your developer or host

Send exact URLs, final URLs after redirects, screenshots of search results, copies of robots.txt and sitemap.xml, and the time you checked. If you can show that the issue appears while logged out but not while logged in, include that too. Clear evidence gets a faster response than a vague report that the website feels strange.

Practical rule: if a public signal changed and you cannot explain the reason, keep the evidence before cleanup. The first visible symptom often points to the source.

A simple first-hour checklist

Use the first hour to reduce uncertainty. Check the homepage, one important landing page, one old high-traffic page, robots.txt, sitemap.xml, the final redirect URL, SSL status, and public page source. If you use a CMS, also check whether any unfamiliar users, plugins, themes, or recent content changes appear in the admin area.

Do not run every tool you can find at once. Start with checks that answer visible questions: where does the URL end, what does the page say, what can crawlers read, and which public files are reachable? Those answers make the next step clearer.

When to stop investigating and call help

Call a developer, host, or security specialist when you see public redirects to another domain, indexed spam pages, exposed config files, unfamiliar admin users, or repeated changes after cleanup. Those are not normal website maintenance issues. They need a controlled fix and follow-up monitoring.

How to fix it once you know the signal

The fix depends on the signal you confirmed. If the final URL is wrong, check redirects in the hosting panel, CDN, CMS redirect plugin, and web server rules. If the problem is strange search text, inspect page titles, SEO plugin fields, generated pages, and sitemap entries. If the problem is an exposed file, remove the file from the public web root and fix the deployment or backup process that placed it there.

Work from the public symptom back to the source. Do not only hide the symptom. A spam URL removed from a sitemap can return if the plugin or database record that generated it still exists. A suspicious redirect deleted from one rule file can return if it came from a compromised plugin setting.

Fix workflow

ConfirmSave the affected URL, final URL, status code, page title, sitemap entry, or exposed path before cleanup.
TraceFind whether the source is hosting config, CDN, CMS content, plugin settings, templates, deployment output, or database content.
RemoveRemove the source, clear caches, rotate relevant credentials, and update vulnerable CMS components if compromise is possible.
VerifyCheck from a private browser and a public outside-in check. Repeat after cache expiry because some issues disappear briefly.

Prevent the same problem from returning

After cleanup, create a known-good baseline. Save expected redirects, robots.txt, sitemap URL count, SSL expiry, important headers, and a short list of public files that should never exist. That baseline helps you identify new drift quickly.

For CMS sites, remove unused plugins and themes, require strong admin passwords, turn on two-factor authentication where available, and keep backups outside the public web root. For static or custom sites, review deployment scripts so build artifacts, debug files, and local backups are not copied into production.

Need a quick outside view? Run Ambastly's free website integrity check to inspect redirects, SSL, headers, robots.txt, sitemap signals, SEO spam, and exposed public paths.

Run the free website integrity check

Related guides

Keep investigating the same problem.

All guides