Decide whether a crawl rule is needed
First identify the problem: crawler traffic, duplicate low-value paths, a page that should not be indexed, or data that must remain private. These need different controls. Do not block all pages as a quick response to a ranking change.
Google explains that a disallowed URL can still appear in search when discovered through links. Private files need real access controls. A noindex instruction has a different purpose, and a crawler generally needs access to the response to see it.
Generate a minimal draft
- Open Robots.txt Generator and enter a user-agent token, such as * for a general group.
- Enter only the paths you intend to disallow, one per line, beginning with /.
- Add an Allow exception only when you understand which rule it overrides for the crawler concerned.
- Optionally add the full public sitemap URL. Run the tool, review the text and download the draft.
Worked example for a fictional site
For example.com, suppose /cart/ is a nonessential cart area and important pages remain outside it. With user agent *, Disallow /cart/ and sitemap https://example.com/sitemap.xml, the generator should produce the following draft. This is an illustration, not a recommendation to copy a rule onto your site without checking its paths.
User-agent: *
Disallow: /cart/
Sitemap: https://example.com/sitemap.xml
Publish only after checking the real URLs
The generator does not know your site’s complete route structure. A syntactically plausible file can still block the wrong content. An Allow rule is a crawler instruction, not authentication, and crawler implementations may differ.
- Preserve the existing robots.txt and compare the proposed change.
- Check that no rule accidentally matches your homepage, tool pages or required CSS and JavaScript.
- Deploy the reviewed text at https://your-domain.example/robots.txt using your existing hosting workflow.
- Fetch that exact URL and confirm it returns the intended text rather than an HTML error page.
- Inspect important URLs and watch crawl/indexing reports after Google has processed the change.
Keep sitemap checks separate from index status
A sitemap helps communicate URLs you want discovered, but inclusion is not proof of crawling, indexing or ranking. Validate the sitemap, check canonical URLs and inspect the actual page response. If a URL is unknown to Google, investigate links, accessibility and content rather than inventing an indexing guarantee.
Changing robots.txt is not a way to ensure an AI service cites your site. Decide which crawler access you intend to permit, keep useful public pages reachable, and evaluate the service’s own published crawler documentation.
Frequently asked questions
Does Disallow remove a page from Google?
Not reliably. A blocked URL can still be discovered through links. Crawling and indexing controls serve different purposes.
Can robots.txt protect private files?
No. Use authentication and appropriate access controls for private data.
Does downloading the file install it?
No. You must review it and publish it through your hosting workflow at the correct root URL.
Does listing a sitemap guarantee indexing?
No. It communicates URLs for discovery; search engines make their own crawling and indexing decisions.
Key takeaways
- Identify the problem before choosing a crawler rule.
- Review every path and preserve the previous file.
- Crawl access, indexing and private access are separate checks.
Published 23 November 2026 by the Cloude Tools team.