Skip to content
RankSi

Free tool

robots.txt generator

Choose which kinds of AI crawler to welcome, list the paths to keep private, and copy a ready-to-use robots.txt. Search crawlers are welcomed by default, because blocking them can make a site invisible to that AI search product.

One per line, starting with /. For example /admin/ or /cart/.

robots.txt

# Generated with the RankSi robots.txt generator (https://ranksi.ai/tools/robots-txt-generator).
# Review it before you publish it, and put it at the root of your site.

User-agent: OAI-SearchBot
Allow: /
Disallow: /admin/
Disallow: /cart/

User-agent: Claude-SearchBot
Allow: /
Disallow: /admin/
Disallow: /cart/

User-agent: PerplexityBot
Allow: /
Disallow: /admin/
Disallow: /cart/

User-agent: GPTBot
Allow: /
Disallow: /admin/
Disallow: /cart/

User-agent: ClaudeBot
Allow: /
Disallow: /admin/
Disallow: /cart/

User-agent: Google-Extended
Allow: /
Disallow: /admin/
Disallow: /cart/

User-agent: Applebot-Extended
Allow: /
Disallow: /admin/
Disallow: /cart/

User-agent: CCBot
Allow: /
Disallow: /admin/
Disallow: /cart/

User-agent: ChatGPT-User
Allow: /
Disallow: /admin/
Disallow: /cart/

User-agent: Claude-User
Allow: /
Disallow: /admin/
Disallow: /cart/

User-agent: Perplexity-User
Allow: /
Disallow: /admin/
Disallow: /cart/

User-agent: *
Allow: /
Disallow: /admin/
Disallow: /cart/

Save it as robots.txt at the root of your site, so it is reachable at yoursite.com/robots.txt. It runs in your browser: nothing you type is sent anywhere.

How to use it

  1. Decide about AI search crawlers (we recommend letting them in).
  2. Decide about training crawlers and on-request agents: it is your content, your choice.
  3. List the paths to keep private, add your sitemap, and copy the result to a file named robots.txt at the root of your site.

Learn more

This tool handles one file. RankSi runs the 41 checks on a whole site and ranks what to fix first: see what that looks like in the example report, how the score is built in how the score works, or what the plans include.

Want to know what else to fix?

A free audit runs all the checks on your site and ranks what to fix first.