ToolHub logoToolHub

Robots.txt Generator

Build a robots.txt file with allow and disallow rules per crawler, sitemap links and an optional block for AI crawlers. Copy or download the result.

Stable
Online

Start from a template

A template replaces the rule groups and keeps your sitemap URLs.

Rule group 1

Use * for all crawlers. Separate several names with commas.

Honoured by Bing and Yandex. Google ignores it.

One path per line, starting with /. A * matches any characters.

Exceptions inside a disallowed path, one per line.

Adds a group that disallows the whole site for: GPTBot, ChatGPT-User, OAI-SearchBot, ClaudeBot, anthropic-ai, Google-Extended, Applebot-Extended, PerplexityBot, CCBot, Bytespider, Amazonbot, meta-externalagent, cohere-ai.

Full URLs, one per line.

Save the file as robots.txt in the root of your site. Disallow stops crawling; it does not remove pages that are already indexed.