# Robots.txt generator

> Generate a robots.txt: allow or block all crawlers, disallow paths, add your sitemap and opt out of AI training bots such as GPTBot. Free.

Free tool by Orkosi. Page: https://orkosi.com/tools/robots-txt-generator

Tell crawlers where they may go. Keep admin and checkout pages out, point search engines at your sitemap and decide whether AI companies may train on your content.

1. Choose whether crawlers may visit the site.
2. List the paths to keep out and add your sitemap address.
3. Press Generate and save the file as /robots.txt.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `policy` | "allow-all" \| "block-all" | no | Crawlers. Default: "allow-all". |
| `disallow` | text | no | Paths to keep out (one per line). |
| `sitemap_url` | text | no | Sitemap URL. |
| `block_ai_crawlers` | true \| false | no | Opt out of AI training crawlers. Default: false. |
| `crawl_delay` | integer | no | Crawl delay (seconds). Optional. Google ignores it; Bing honours it. |

## Example

Input:

```json
{
  "policy": "allow-all",
  "disallow": "/admin\n/checkout\n/api/",
  "sitemap_url": "https://example.com/sitemap.xml",
  "block_ai_crawlers": true
}
```

Result:

```json
{
  "robots_txt": "User-agent: *\nDisallow: /admin\nDisallow: /checkout\nDisallow: /api/\n\nUser-agent: GPTBot\nDisallow: /\n\nUser-agent: ChatGPT-User\nDisallow: /\n\nUser-agent: ClaudeBot\nDisallow: /\n\nUser-agent: Claude-Web\nDisallow: /\n\nUser-agent: Google-Extended\nDisallow: /\n\nUser-agent: PerplexityBot\nDisallow: /\n\nUser-agent: CCBot\nDisallow: /\n\nUser-agent: Bytespider\nDisallow: /\n\nUser-agent: Amazonbot\nDisallow: /\n\nUser-agen…",
  "rules": 13
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "robots-txt-generator", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/robots-txt-generator/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"policy":"allow-all","disallow":"/admin\n/checkout\n/api/","sitemap_url":"https://example.com/sitemap.xml","block_ai_crawlers":true}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**Does robots.txt hide a page from Google?**

No. It stops crawling, not indexing: a blocked page can still appear if others link to it. Use a noindex meta tag to keep a page out of results.

**Which AI crawlers are blocked?**

GPTBot and ChatGPT-User (OpenAI), ClaudeBot (Anthropic), Google-Extended, PerplexityBot, CCBot, Bytespider, Amazonbot and Applebot-Extended.

**Where does the file go?**

At the root of the domain: https://example.com/robots.txt. Each subdomain needs its own.

All free tools: https://orkosi.com/tools.md
