Free tool

Robots.txt Generator & Checker

Choose which pages and which crawlers, including AI crawlers, may visit your site, and get a valid robots.txt. Or paste your current file to find mistakes. Everything runs in your browser.

Default for all crawlers

One path per line, starting with /. * matches anything, $ marks the end, e.g. /*.pdf$.

One path per line, starting with /. Use it to open a page inside a blocked folder.

Full addresses, one per line, e.g. https://example.com/sitemap.xml.

Block specific crawlers

Ticked crawlers are blocked from the whole site. Unticked crawlers follow the default rules above.

Search engines

Blocking these removes your pages from those search engines over time.

AI training crawlers

Collect pages to train AI models. Blocking them does not affect normal search results.

AI search and answer crawlers

Fetch pages so AI assistants can quote and link to you. Blocking them can keep your brand out of AI answers.

robots.txt is a request, not a lock: well-behaved crawlers follow it, others may not. Some AI assistants also fetch a page when a user shares its link.

Your robots.txt

User-agent: *
Disallow:

Save it as robots.txt at the root of your domain, so it opens at an address like https://example.com/robots.txt. Each subdomain needs its own file.

Runs only in this browser tab: what you type or paste is not uploaded, saved, sent to AI or tracked, and your site is not visited.

  1. 1

    Set the default

    Most sites allow everything and block only private areas such as the admin, cart or internal search results.

  2. 2

    Choose crawlers

    Decide separately about AI training crawlers and AI answer crawlers. Blocking the second group can keep your brand out of AI answers.

  3. 3

    Upload and check

    Download the file, put it at the root of your domain, then paste the live version into the checker to confirm it reads correctly.

Follows the standard

Rules are written and checked the way the official robots.txt standard describes: groups, longest match wins, * and $ patterns.

AI crawlers in one place

Training crawlers and answer crawlers are listed separately, so you can protect your content without disappearing from AI answers.

Nothing leaves your device

No upload, no account, no AI. Generating, checking and downloading all happen in this tab.

Does robots.txt remove a page from search results?+

No. It only asks crawlers not to visit. A blocked page can still appear in results if other sites link to it. To remove a page, use a noindex tag and leave the page crawlable.

Should I block AI crawlers?+

It depends on your goal. Blocking training crawlers limits how your content is used to train models. Blocking AI search and answer crawlers can stop assistants from citing and linking to you, which usually hurts brand visibility.

Is what I paste sent anywhere?+

No. The file is built and checked in your browser. The tool does not fetch your site and sends no network request with your content.

Want this automated for every article?

AI Brand Visibility's pipeline checks and optimizes this automatically for every article it generates - no need to do it by hand each time.

AI Visibility