#074 · Web Meta & Server Files Developer Tool

Robots.txt Generator

Generate robots.txt groups, crawler rules, sitemap declarations, and test a path against the resulting allow and disallow directives.

Developer Input

Web Meta & Server Files
Ad space

How to use this developer tool

  1. Select a preset or edit raw directives.
  2. Add sitemap lines when needed.
  3. Enter a path to test.
  4. Review blocking warnings before deployment.

What this developer tool does

The tool creates crawler-access directives and highlights rules that block the entire site or expose sensitive path names.

Load preset or raw rules → normalize directives → remove duplicates → validate groups → test the supplied path.

Robots.txt controls crawling behavior; it is not an access-control system and does not guarantee de-indexing.

Example

A wildcard group can allow the site while disallowing /admin/ and declaring the sitemap URL.

Tips for better output

  • Use Disallow: / only when full blocking is intentional.
  • Do not list secret paths as a security measure.
  • Pair indexing decisions with page-level robots directives where appropriate.

FAQ

How do I create a robots.txt file that allows all crawlers?

Use User-agent: * followed by an empty Disallow directive or an Allow: / rule.

How do I block an admin folder in robots.txt?

Add a Disallow directive for the admin path under the relevant user-agent group.

Does robots.txt remove a page from Google search?

No. It controls crawling and does not always remove an already indexed URL.

How do I add a sitemap to robots.txt?

Add an absolute Sitemap directive, usually near the end of the file.

How do I test whether a URL is blocked by robots.txt?

Compare the path against the most specific matching allow and disallow directives.

Directive guide

DirectiveMeaning
User-agentCrawler group
Allow / DisallowPath crawl rules
SitemapAbsolute sitemap URL

Browse more developer tools

Calldeveloper category hub