To check a generated robots.txt result, review the downloaded text, compare it with the current production file, publish it at the exact origin’s /robots.txt path, and request that live URL to confirm its status, content type, and body.
There are three separate checks: whether the generated text is correct, whether the deployed file matches that text, and whether a crawler applies the intended rules. The Robots.txt Generator supports the first stage by creating a downloadable candidate file. It does not fetch the existing production file, validate the server response, submit anything to a search engine, or confirm that a crawler has refreshed its cached copy.

Inspect the downloaded file before deployment
Open the downloaded file in a plain-text editor and read it as a crawler would. The generated output is plain UTF-8 text with one wildcard user-agent group and a sitemap line. It is created entirely in the browser, so the configuration is not sent to a server; the entered paths and generated text remain in the current tab.
Confirm that the policy and rules match your plan:
| Generator mode | Intended crawler policy | Rules in the generated group |
|---|---|---|
| Allow all | Allow compliant crawlers to access the entire site | User-agent: *; Allow: / |
| Selective disallow | Ask compliant crawlers to avoid selected path patterns | User-agent: *; one Disallow line for each selected path |
| Block all | Ask compliant crawlers to avoid the entire site | User-agent: *; Disallow: / |
Every mode also receives a Sitemap line based on the normalized origin plus /sitemap.xml. When the entered site URL contains a page path, query, or fragment, the generator reduces it to the origin so the sitemap does not inherit that route. An explicit port is preserved. If the real sitemap is stored elsewhere, edit the generated sitemap line before publishing.
For selective mode, enter one path pattern per line. The generator requires 1–50 unique, slash-prefixed paths, removes exact duplicates in first-seen order, rejects hash signs and control characters, and preserves the protocol’s wildcard asterisks and trailing dollar signs. Review capitalization, path prefixes, wildcards, and anchors before accepting the result.
How to check the live robots.txt after publishing
Use the following sequence to move from the generated file to a verified live response:
- Reopen the downloaded candidate. Confirm that its filename is lowercase robots.txt, its rules match your intended policy, and its sitemap line points to the correct location. Keep this reviewed copy separate from the production file until the comparison is complete.
- Retrieve the current production file. Request the exact origin followed by /robots.txt before making any change. Save the current response if a file already exists, and note any groups or directives that serve a deliberate purpose. The generator cannot perform this retrieval or comparison for you.
- Compare the two files line by line. Check the user-agent groups, allow and disallow paths, sitemap entry, and any crawler-specific sections. The generated file intentionally contains one general wildcard group, so preserve intentional existing groups that the candidate does not reproduce. Edit the sitemap line if its actual location differs.
- Publish the reviewed file at the correct origin. Place it as /robots.txt at the top level of the exact scheme, host, and port it governs. Use a lowercase filename and serve it as text/plain. A file in a subdirectory, on another subdomain, or under a different scheme or port does not govern the intended origin.
- Request the live address again. Open it in a browser or inspect it with an HTTP client. For a clean publication, confirm a direct successful 200 response, a text/plain content type, and a body that matches the reviewed file. If the response contains old content, check the deployed file and response caching rather than assuming the new rules are active.
- Test important URL paths. Use a relevant search-engine tester, where available, to test one URL that should be accessible and one URL affected by a disallow rule. Test the exact URLs rather than relying only on the appearance of the rules. Google’s robots.txt documentation provides additional guidance for Google’s crawling behavior.
- Confirm the sitemap reference. Request the URL in the final Sitemap line and make sure it resolves to the intended sitemap. If it does not, correct the line and republish the file.
- Retain a rollback copy. Keep both the previous production file and the newly deployed version, along with the publication time. This gives you a clear restoration point if a rule blocks an important section or the live response differs from the candidate.
Compare each validation layer
A successful check at one layer does not prove the next layer. Use this breakdown to avoid treating a valid text file as proof of live deployment or search-engine behavior.
| Check layer | What to verify | What it does not establish |
|---|---|---|
| Generated text | Policy mode, path syntax, sitemap line, and file contents | That the file exists on the production server |
| Live response | Successful status, content type, location, and exact body | That every crawler has fetched or applied the file |
| Rule behavior | Whether intended public and blocked paths receive the expected crawler response | That the content is private or protected from direct requests |
| Search outcome | The appropriate indexing, removal, and access controls for the actual goal | That a robots.txt directive alone guarantees removal from results |
The most important distinction is between the file being available and a crawler using it. A valid live response confirms publication, but the generator cannot determine when each search engine will revisit the file or whether an existing cached version has been replaced.
Verify path matching and origin scope
Path rules are easier to assess when you understand their exact semantics. The Robots Exclusion Protocol in RFC 9309 defines how groups and rules are matched. Matching begins at the start of a URL path, comparisons are case-sensitive, and the most specific matching rule takes precedence. Consequently, /Private and /private can mean different things.
Review these distinctions before publishing:
- /draft is a prefix-style path rule and does not necessarily mean “only the exact /draft page.”
- /draft$ uses the protocol’s end anchor to express the intent of matching the exact path.
- * is a protocol-defined wildcard and is preserved in the generated output.
- Every non-empty selective rule must start with / because matching starts with the URL path.
Also check the origin rather than only the host. A robots.txt file governs the exact scheme, host, and port where it is published. The HTTPS version does not automatically govern HTTP, and a file on a subdomain does not govern the main domain.
Separate crawling from privacy and indexing
A valid robots.txt file is a public crawler request, not an authentication or authorization mechanism. It does not encrypt content, prevent a malicious client from requesting a URL, or keep listed paths secret. Use server-side authentication and authorization for sensitive pages, and do not treat a blocked path as protection for private information.
Blocking a crawl also does not guarantee removal from search results. Crawling and indexing are separate processes, and a search engine may discover a blocked URL through links to other pages while retaining limited information without fetching the blocked content. If the goal is removal, use the appropriate indexing directive, HTTP header, removal workflow, or authentication method for that situation.
Keep the rollback copy and remaining limits clear
The generator cannot fetch the existing live file, validate server responses, submit the file to a search engine, or confirm a crawler’s cache refresh. It also omits Crawl-delay because that directive is outside RFC 9309 and is not supported consistently across crawlers. These limitations make the manual deployment and live checks essential.
After publishing, repeat the live request, inspect the body and content type, test the critical allowed and blocked URLs, and confirm that the sitemap reference works. If the result changes later, repeat the same checks and compare it with the retained copy. That process gives you a verifiable answer to whether the generated robots.txt is correctly published, without overstating what the file can guarantee.
For a deeper look, see How Do I Document the Steps I Use to Generate ads.txt?.