Good robots.txt generator practice comes down to three checks: choose a policy that reflects the site's intent, review every path against RFC matching rules, and publish the file only at the exact origin it is meant to govern.
A robots.txt file is public crawler guidance, not a security boundary. It can ask compliant crawlers to avoid URLs, but it cannot authenticate users, stop a determined client from requesting a page, or guarantee removal from search results.

Choose the policy that matches the site
Start with the intended crawling outcome rather than a copied default. The generator supports three overall policies, each producing one general user-agent group rather than a collection of search-engine-specific extensions.
| Policy | Generated rule | Appropriate use | Main review point |
|---|---|---|---|
| Allow all | Allow: / | Permit compliant crawlers to request publicly available paths. | Confirm that sensitive routes are protected by access controls rather than robots.txt. |
| Selective disallow | One Disallow: line for each entered path | Avoid defined path families while leaving other paths available for crawling. | Review capitalization, prefix behavior, wildcards, and end anchors. |
| Block all | Disallow: / | Deliberately ask the general crawler group to avoid the entire origin. | Consider the broad effect and any more specific crawler groups already in production. |
The output also includes Sitemap: followed by the normalized origin and /sitemap.xml. A page path, query, or fragment in the entered URL is removed so the sitemap does not inherit an unrelated route, while an explicit port is preserved. If the real sitemap has another location, edit that line before publishing. The wildcard group applies only when a crawler has no more specific matching group.
Create and publish a reviewed robots.txt file
- Enter the complete site URL. Use one HTTP or HTTPS website origin with its scheme, host, and any explicit port. The URL must be credential-free. With the Robots.txt Generator, configuration is processed in the browser rather than sent to a server.
- Choose the overall crawler policy. For selective mode, enter one disallowed path per line. Every non-empty rule must begin with a slash. Enter 1–50 unique paths; exact duplicates are removed in their first-seen order.
- Generate and inspect the text. Review the user-agent group, every Allow or Disallow line, and the sitemap URL. The result is downloadable plain UTF-8 text. Asterisks and trailing dollar signs are preserved, while hash signs and control characters are rejected rather than silently treated as comments.
- Compare it with the current production file. Download the existing live file, compare it with the generated result, and preserve any intentional crawler-specific groups. Keep the old file for rollback. The generator cannot retrieve the live file or confirm how different crawlers will interpret a merged configuration.
- Publish and test the reviewed file. Place it at /robots.txt on the exact scheme, host, and port it governs. Use a lowercase filename, serve it as text/plain, and test important public and blocked URLs with the relevant search-engine tester where available.
All entered paths and generated text remain in the current tab. The tool does not fetch the deployed file, validate server responses, submit anything to a search engine, or confirm that a crawler has refreshed its cache. Those checks require access to the live site and the relevant search-engine tools.
Check path matching before trusting a rule
According to RFC 9309, path rules match from the beginning of the URL path, path comparisons are case-sensitive, and the most specific matching rule applies. A rule that appears later does not automatically override a more specific rule.
- Check capitalization: /Private and /private can represent different paths.
- Distinguish prefixes from exact paths: /draft and /draft$ do not necessarily express the same intent.
- Review every asterisk: wildcard characters are retained because they affect protocol matching.
- Keep each rule focused: a path, pattern, and optional comment cannot be combined safely in one line.
- Remember group selection: a wildcard group is not a substitute for a more specific crawler group.
| Common mistake | Why it causes trouble | Safer correction |
|---|---|---|
| Using the wrong letter case | Path comparison is case-sensitive. | Copy the route's actual capitalization. |
| Treating /draft as an exact-page rule | A prefix can cover longer paths beginning with /draft. | Use /draft$ only when an end-anchored match is intended. |
| Leaving a wildcard unreviewed | The asterisk can broaden the matched paths. | Confirm that its placement reflects the intended route family. |
| Adding a hash note to a path | Hash signs are rejected to avoid accidental comments. | Remove the note and keep only the path rule. |
Before accepting the output, compare the intent of each line with a known public URL and a known restricted URL. A syntactically valid file can still express the wrong request if a path differs by capitalization, a prefix, or an anchor.
Publish at the exact origin you intend to govern
Location is part of the rule, not a publishing detail. The file must be available as /robots.txt at the top level of the exact origin it governs. A copy in a subdirectory, on another subdomain, under a different protocol, or on a different port does not control the intended origin. The generator preserves explicit ports so the deployment location can match the entered URL.
After deployment, open the direct /robots.txt address and confirm that the server returns the reviewed text as plain text. Follow Google's robots.txt creation guide for additional testing guidance, then check representative URLs that should be available and paths that should be avoided. Keep the previous file until the live result has been reviewed.
Do not assume that replacing one file with another preserves every previous behavior. The generated wildcard group applies only to crawlers without a more specific matching group, so intentional crawler-specific groups must be retained and reviewed as part of the replacement.
Separate crawl rules from access and indexing controls
Robots.txt is visible to anyone who can request it. Every listed path is public information, and a malicious client can ignore the instructions. Private content therefore requires server-side authentication and authorization; listing a sensitive route in robots.txt is not a substitute for access control.
Blocking a crawl also does not guarantee that a URL will disappear from search results. Crawling and indexing are separate, so a search engine may discover a URL through links and retain limited information without fetching the blocked page. Use the control that matches the objective: page-level indexing directives, HTTP headers, a removal workflow, or authentication. A Meta Robots Generator can help create a page-level noindex directive when the page must remain crawlable enough for a crawler to read it.
Do not combine directives without understanding each crawler's behavior. The generator intentionally omits Crawl-delay because it is outside RFC 9309 and is not supported consistently across crawlers. It also produces one general group rather than pretending to manage every search engine's private extensions.
Run a final mistake check before release
Use a short release checklist that separates file delivery, rule accuracy, and business intent:
- Is the URL the exact scheme, host, and port intended?
- Is the file at the top level as lowercase /robots.txt?
- Is it served as text/plain?
- Does the selected policy match the crawling objective?
- Do all selective rules begin with a slash?
- Are capitalization, prefixes, anchors, and wildcards intentional?
- Is the sitemap URL correct after origin normalization?
- Have existing crawler-specific groups and the rollback copy been preserved?
- Are indexing or security handled with controls appropriate to those separate goals?
Treat the generated file as reviewed configuration rather than boilerplate. The generator handles the standardized structure, but the final request still depends on accurate paths, deliberate policy, correct deployment, and testing outside the tool.
For a deeper look, see How Do I Check the Result After Generating ads.txt?.
For a deeper look, see AI Bot Robots.txt Audit: Match Rules and Token Scope.