# Robots.txt-generator

> Generér en robots.txt: tillad eller blokér alle crawlere, udeluk stier, tilføj dit sitemap, og fravælg AI-træningsbots som GPTBot. Gratis.

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

Fortæl crawlerne, hvor de må gå. Hold administrations- og betalingssider ude, peg søgemaskiner mod dit sitemap, og beslut, om AI-virksomheder må træne på dit indhold.

1. Vælg, om crawlere må besøge websitet.
2. Angiv de stier, der skal holdes ude, og tilføj din sitemapadresse.
3. Tryk på Generér, og gem filen som /robots.txt.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `policy` | "allow-all" \| "block-all" | no | Crawlere. Default: "allow-all". |
| `disallow` | text | no | Stier, der skal holdes ude, én pr. linje. |
| `sitemap_url` | text | no | Sitemap-URL. |
| `block_ai_crawlers` | true \| false | no | Fravælg AI-træningscrawlere. Default: false. |
| `crawl_delay` | integer | no | Crawlingforsinkelse (sekunder). Valgfrit. Google ignorerer den, Bing respekterer den. |

## 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

**Skjuler robots.txt en side fra Google?**

Nej. Den stopper crawling, ikke indeksering: En blokeret side kan stadig vises, hvis andre linker til den. Brug et noindex-metatag for at holde en side ude af resultaterne.

**Hvilke AI-crawlere blokeres?**

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

**Hvor placeres filen?**

I domænets rodmappe: https://example.com/robots.txt. Hvert underdomæne skal have sin egen.

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