Prompt

How do I validate canonicals, robots.txt, and noindex across a site?

Technology / SEO & AEO Tools1 observationLast seen Oct 21, 2026

Latest observation

Oct 21, 2026OpenAI APIWeb search: off

To validate canonicals, robots.txt, and noindex across a site, use a mix of crawler checks, URL-level spot checks, and search engine inspection tools.

1) Canonicals

What to verify

For each indexable page:

  • It has a self-referencing canonical or an intentional canonical target.
  • The canonical is:
    • in the <head>
    • absolute or valid relative URL
    • returns 200 OK
    • not blocked by robots.txt
    • not pointing to a redirected, broken, or noindexed URL
  • There is only one canonical tag per page.
  • Canonicalized pages don’t conflict with:
    • redirects
    • hreflang
    • pagination
    • parameter handling

How to validate

  • Crawl the site with tools like:
    • Screaming Frog
    • Sitebulb
    • Ahrefs / Semrush site audit
  • Export:
    • page URL
    • canonical URL
    • status code
    • indexability
  • Look for:
    • canonical chains
    • canonical loops
    • canonicals to 3xx/4xx/5xx URLs
    • canonicals pointing to blocked pages

Quick checks

  • View source or inspect DOM:
    • search for <link rel="canonical" ...>
  • Test a sample URL with curl:
    • curl -I https://example.com/page
  • Confirm the canonical target is reachable and correct.

2) robots.txt

What to verify

  • robots.txt is accessible at:
    • https://example.com/robots.txt
  • It returns 200 OK
  • It does not unintentionally block important sections
  • It includes correct directives for:
    • User-agent
    • Disallow
    • Allow
    • sitemap references

How to validate

  • Open /robots.txt directly in a browser or with curl
  • Check that important pages and resources are not blocked
  • Test with Google Search Console’s robots.txt tester if available
  • Crawl the site and compare blocked URLs against your intended rules

Common issues

  • Blocking CSS/JS needed for rendering
  • Blocking canonical targets
  • Accidentally disallowing whole directories
  • Having outdated rules after site migrations

3) noindex

What to verify

  • Pages meant to be excluded have:
    • <meta name="robots" content="noindex">
    • or an equivalent X-Robots-Tag: noindex header
  • The page is crawlable if you want search engines to see the noindex
  • The page is not blocked by robots.txt if you expect search engines to observe the noindex tag

Important note

If a page is blocked by robots.txt, search engines may not see the noindex tag at all.
So:

  • Use noindex when you want crawlers to access the page but not index it
  • Use robots.txt when you want to prevent crawling
  • Don’t rely on robots.txt alone to deindex a URL

How to validate

  • Check page source for:
    • <meta name="robots" content="noindex">
  • Check headers for:
    • X-Robots-Tag
  • Use curl -I https://example.com/page
  • Use Google Search Console’s URL Inspection to confirm Google sees the noindex

4) Recommended workflow for a site-wide audit

Step 1: Crawl the whole site

Collect:

  • URL
  • status code
  • canonical
  • meta robots
  • X-Robots-Tag
  • indexability
  • robots.txt blocked status

Step 2: Segment URLs

Group by:

  • indexable pages
  • noindex pages
  • blocked pages
  • redirected pages
  • canonicalized pages

Step 3: Compare expected vs actual

Check for:

  • indexable pages that are noindexed
  • noindex pages that are still canonical targets
  • blocked pages that should be indexed
  • pages with conflicting directives:
    • noindex + canonical to another URL
    • robots.txt disallow + noindex
    • canonical to redirected URL

Step 4: Spot-check in search tools

Use:

  • Google Search Console
  • Bing Webmaster Tools
  • live URL fetch/inspection where possible

5) Practical validation rules

A page is usually healthy if:

  • It returns 200
  • It is allowed by robots.txt
  • It has a single correct canonical
  • It has no contradictory robots directives
  • It matches intended indexability

A page is suspicious if:

  • canonical points somewhere else unexpectedly
  • canonical target is blocked/noindexed/redirected
  • robots.txt blocks pages you need indexed
  • noindex pages are being canonicalized incorrectly
  • multiple directives conflict

6) If you want a repeatable audit

You can automate this with:

  • Screaming Frog custom extraction
  • a script using requests/httpx + HTML parsing
  • Google Search Console API for URL inspection at scale
  • log analysis to confirm bot behavior

If you want, I can give you:

  1. a Screaming Frog checklist,
  2. a Python script to validate these sitewide, or
  3. a Google Sheets audit template.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.