Robots.txt: Understand and Use the Results
Parse robots.txt rules and sitemaps
robots.txt: the file that quietly decides whether Google crawls your site
The `robots.txt` file is a small text file at the root of every website (`yourdomain.com/robots.txt`) that tells search-engine crawlers which pages they are allowed to read and which they are not. It is the first file every well-behaved search engine fetches when it visits a domain, and the directives inside it are honored by Google, Bing, Yahoo, DuckDuckGo, and the entire ecosystem of compliant bots. The format is dead simple — a few lines of `User-agent` and `Disallow` rules — but the consequences of getting it wrong are anything but.
You should care because a single typo in `robots.txt` can deindex your entire website. The most famous version of this is the line `Disallow: /`, which is shorthand for "do not crawl any URL on this domain." It is the standard configuration for staging and development environments, where you don't want Google indexing in-progress work. The disaster is when that line survives a launch and accidentally goes live in production. Within hours, every page on your live site disappears from Google. Within days, your organic traffic is zero. Within weeks, your business notices.
The five things every `robots.txt` audit looks at:
Does the file exist? A missing `robots.txt` is fine — search engines treat that as "crawl everything." But many CMSes generate one automatically and you should know what is in it.
Is there a global `Disallow: /`? This is the disaster line. Any time it appears in production, every search engine in the world stops crawling.
Are important sections accidentally blocked? Watch for blocks on `/blog`, `/products`, `/api`, `/static`, or `/wp-content` that prevent Google from rendering pages correctly.
Is the sitemap referenced? A `Sitemap:` line in `robots.txt` tells crawlers where to find the XML sitemap.
Are there `User-agent` rules for specific crawlers? Many sites block specific bots (like SEO crawlers from competitors or AI training bots) — these rules can quietly evolve and cause unintended consequences.
The audit has gotten more interesting since AI crawlers arrived. It is no longer enough to know what "the" rule is — robots.txt now needs to be evaluated per crawler. Googlebot, Bingbot, GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl, used to train many models), Applebot-Extended, and PerplexityBot each match different `User-agent` blocks, and the effective rule for each one depends on a specificity algorithm that can be surprising. A deep audit resolves the effective rule for each major crawler so you can answer questions like "Is GPTBot allowed to train on my content?" or "Is Googlebot accidentally blocked from a section that ClaudeBot can still read?" The same audit also HEAD-verifies every sitemap URL declared in robots.txt — a `Sitemap:` line pointing at a 404 quietly defeats the whole purpose.
Three questions a `robots.txt` audit answers:
Did anything from staging accidentally make it into production and turn off search-engine crawling?
Are any of my important content sections accidentally blocked?
Is my `robots.txt` doing what I think it is doing for every crawler — or has it drifted such that Googlebot, GPTBot, and ClaudeBot now see different rules?
The cost of an unchecked `robots.txt` is the most catastrophic SEO failure mode in the entire industry: total invisibility, with no warning signs until traffic has already collapsed. The fix is a thirty-second file edit — but only if you notice. Running this check on a regular schedule, or as part of every launch, is the easiest catastrophe-prevention measure in SEO. The official `robots.txt` documentation is hosted by Google and the protocol itself is described in RFC 9309.
The Robots.txt endpoint, in plain language
Parse robots.txt (robots.txt file) rules and sitemaps
Robots.txt often reveals hidden directories, admin panels, and API (Application Programming Interface) endpoints that aren't linked publicly. For SEO (Search Engine Optimization), it helps verify that important pages aren't accidentally blocked from search engines.
What is actually happening when you call it
Retrieves robots.txt (robots.txt file) from the domain root and parses it per RFC (Request for Comments) 9309 (the Robots Exclusion Protocol standard). Extracts User-agent blocks, Allow/Disallow rules, sitemap references, and crawl-delay directives. Highlights commonly interesting disallowed paths (admin panels, APIs, etc.).
Why this specific tool matters
Choose a task: Security Reconnaissance. Discover hidden paths and admin interfaces listed in Disallow rules.
Run the Robots.txt request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the Robots.txt reference to check the field definitions and supported options.
Available on the free plan. The technical details: `GET /v1/domain/robots`.
When would I actually use this?
Security Reconnaissance
Discover hidden paths and admin interfaces listed in Disallow rules.
Use the finding: Find additional attack surface not discoverable through crawling.
SEO Troubleshooting
Diagnose why certain pages aren't appearing in search results by checking robots.txt (robots.txt file) blocks.
Use the finding: Fix accidental search engine blocks hurting organic traffic.
Crawler Configuration
Verify robots.txt (robots.txt file) is properly configured before deploying to production.
Use the finding: Prevent accidental blocking of important pages from search engines.
The easiest way: just ask your AI assistant
Connect the MCP server. Just ask in plain English:
Use domain_robots with domain=https://example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.
Confirm the tool and inputs in the client before accepting its summary. For Robots.txt, use the response fields below to separate observations from recommendations.
The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.
The technical way: call it from code
This Robots.txt request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the free plan or higher; adapt the target to your task.
curl --request GET 'https://api.edgedns.dev/v1/domain/robots?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"Prepare inputs for Robots.txt
Start with the inputs below. Keep the same hostname, path, and options when comparing Robots.txt observations. The API reference contains the complete parameter contract, optional settings, and access requirements.
| Field | Type | Required? | What it means | Example |
|---|---|---|---|---|
domain | string | Yes | Domain or full URL (web address) — accepts `example.com` or `HTTPS://example.com/path`. Both `HTTP://` and `HTTPS://` robots.txt (robots.txt file) locations are probed regardless of the protocol picked. | https://example.com |
Interpret Robots.txt findings
Read these fields alongside the full response from your Robots.txt check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.
| Field | Type | What you'll see in it |
|---|---|---|
domain | string | The queried domain (bare hostname). |
url | string | Full URL (web address) that was fetched, echoing the protocol used in the request. |
exists | boolean | Whether robots.txt (robots.txt file) exists |
Words you might be wondering about
API (Application Programming Interface) — A way for one program to ask another program for something — like a waiter taking your order to the kitchen.
SEO (Search Engine Optimization) — Everything you do to help search engines like Google find, understand, and rank your website.
robots.txt (robots.txt file) — A simple text file at the root of a website that tells search engine crawlers which pages they're allowed to look at and which to skip.
RFC (Request for Comments) — The official internet standards documents. When someone says 'RFC 8484' they mean a specific numbered standards document — in that case, the one defining DNS over HTTPS.
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.