Robots.txt Generator

Generate a robots.txt file for your website in seconds. Control which search engines and AI crawlers can access your content — then download and upload to your site root.

Default rule

Applies to every crawler not explicitly listed.
Googlebot ignores crawl-delay. Bing and Yandex respect it.
Add your XML sitemap URL so bots can find it automatically.

Disallow paths

Paths are relative to root. Must start with /. Example: /private/

Bot rules

Search engines
AI crawlers 2026
Social & others
robots.txt output
Copied!

  

How to use this generator

Fill in the settings on the left and the robots.txt file updates in real time. When you're happy with the output:

What is a robots.txt file?

A robots.txt file is a plain text file placed at the root of your website that tells web crawlers which pages or sections they are allowed or not allowed to crawl. It follows the Robots Exclusion Protocol (REP) — an informal standard respected by all major search engines.

A basic robots.txt file looks like this:

User-agent: *
Disallow: /private/
Allow: /

Sitemap: https://example.com/sitemap.xml

User-agent: * means "all crawlers". Disallow: /private/ tells them not to crawl anything inside that folder. Allow: / explicitly permits everything else.

AI crawlers in 2026 — what's new

In 2026, a growing number of AI companies crawl the web to train large language models. Unlike traditional search bots, these crawlers don't send traffic back to your site. Many site owners now block them to protect their content from being used as training data without permission.

Key AI crawlers you may want to control:

Blocking these bots does not affect your Google or Bing search rankings — they use separate bots (Googlebot, Bingbot).

Robots.txt directives explained

Frequently asked questions

Where do I put the robots.txt file?
Always at the root of your domain — https://yourdomain.com/robots.txt. It must be accessible without authentication. Placing it in a subfolder (e.g. /blog/robots.txt) does nothing — crawlers only check the root.
Does blocking bots in robots.txt prevent indexing?
Disallowing a URL tells Googlebot not to crawl it, but Google can still index it if the URL is linked from another page. To prevent indexing entirely, use a noindex meta tag or X-Robots-Tag HTTP header instead.
Should I block GPTBot and other AI crawlers?
It depends. Blocking AI training crawlers (GPTBot, ClaudeBot, CCBot) prevents your content from being used to train large language models without your consent. It does not affect your Google or Bing rankings. Many publishers block them as a precaution.
Is an empty robots.txt file OK?
Yes. An empty robots.txt file — or no file at all — means all crawlers are allowed everywhere. That is fine for most sites. You only need rules when you want to restrict something.
Can I have multiple User-agent blocks?
Yes. You can add as many User-agent blocks as you need, each with their own Allow/Disallow rules. The generator above handles this automatically when you set individual bot rules.
Does robots.txt affect page speed or Core Web Vitals?
No. Robots.txt only controls crawler access — it has no effect on how fast your pages load or your Core Web Vitals scores.
How do I test if my robots.txt is working?
Use Google Search Console → Settings → robots.txt — it shows your live file and lets you test URLs against it. You can also visit yourdomain.com/robots.txt directly in a browser to confirm the file is live.

Related tools