SpeedVerge

SpeedVerge knowledge base

Generate a robots.txt file

Create a clear robots.txt policy and optional sitemap directive.

About this page

Create a clear robots.txt policy and optional sitemap directive.

How to use it

  1. Enter the minimum information required for the intended output.
  2. Generate the result locally and read every option and warning.
  3. Check syntax, URLs, escaping and values against the relevant current specification.
  4. Test the output on one representative page or system before wider use.

How to interpret the result

Generated output from Generate a robots.txt file is a starting point that must match the real page, application and policy where it will be published.

Privacy and limitations

Generation does not guarantee compatibility, search visibility, accessibility, security or compliance with third-party platform requirements.

Practical examples

Allow normal crawling

User-agent: *
Allow: /
Sitemap: https://example.com/sitemap.xml

Keep an internal area out of crawling

User-agent: *
Disallow: /internal-search/
Disallow: /temporary/

Common mistakes to avoid

Frequently asked questions

Where must robots.txt be published?

Publish it at the root of the exact protocol and hostname it controls, such as https://example.com/robots.txt.

Does robots.txt hide private information?

No. The file is public and crawling rules are not access control. Sensitive content needs authentication and appropriate permissions.

Can I include a sitemap?

Yes. Add an absolute Sitemap directive pointing to an accessible sitemap or sitemap index.

Should I block duplicate pages?

Usually canonicalisation, redirects and deliberate internal linking are better tools. Blocking can prevent a crawler from seeing a canonical signal.

Authoritative references

Reviewed: 21 August 2026 · SpeedVerge editorial team

Recommended next step

Validate the generated output, publish it through a reversible change and monitor the destination for errors.