LastingWeb

Free tool · No signup

robots.txt generator

Build a correct robots.txt with a few clicks, and decide crawler by crawler whether AI companies may train on your content or cite it in answers.

Runs entirely in your browser · Nothing is sent to our servers

Loading the robots.txt Generator…

What we check and why

What the generator creates

robots.txt is a plain text file at the root of your domain that tells crawlers which paths they may fetch, following RFC 9309. The generator writes a valid file from a few choices: which folders to keep crawlers out of, where your sitemap lives, and how to treat each AI crawler. The file updates as you click, ready to copy or download.

  • A default group allowing all crawlers, with optional Disallow rules for admin, search-result or staging paths.
  • A Sitemap line with your full sitemap URL.
  • Separate toggles for AI training crawlers: GPTBot, ClaudeBot, CCBot, Google-Extended, Applebot-Extended, Bytespider, meta-externalagent and others.
  • Separate toggles for AI search and user-triggered crawlers: OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot and Perplexity-User.

Training versus search: decide separately

Blocking a training crawler keeps your pages out of future training data collected by that crawler, if it honours robots.txt as the major ones say they do. Blocking a search crawler removes you from that assistant's search results and citations. Many firms choose to allow search crawlers, so they can be found and cited, and decide on training crawlers as a matter of policy.

Google-Extended only controls use of your content for Gemini models; it does not affect Google Search, and AI Overviews are crawled by Googlebot. Blocking Googlebot would remove you from Google Search entirely, so the generator never does that by default.

Before you publish

Never block CSS or JavaScript folders that pages need to render, and never publish a Disallow: / from a staging template on a live site. robots.txt is a public request, not security: do not list secret paths in it, and protect private areas with authentication. Upload the file to the root of your domain so it is available at /robots.txt, then test it with our robots.txt checker. The generator runs entirely in your browser.

An example for a firm website

A typical result has one group for all crawlers that disallows the admin area and internal search, separate groups that disallow selected AI training crawlers if you have decided to opt out, and a Sitemap line at the end. Crawlers you leave untouched follow the general group, so AI search crawlers such as OAI-SearchBot can still find and cite your pages.

Frequently asked questions

Will blocking GPTBot remove me from ChatGPT?

No. GPTBot is OpenAI's training crawler. ChatGPT search uses OAI-SearchBot, and ChatGPT-User fetches pages on users' requests. Each has its own toggle.

Do all AI companies respect robots.txt?

Major providers state that their named crawlers honour it. Some less reputable crawlers may not; robots.txt cannot enforce anything technically.

Can robots.txt hide a page from Google?

It stops crawling, not indexing. Use a noindex tag on a crawlable page to keep it out of results.

Where do I upload the file?

To the root of your domain, so it is reachable at https://yourdomain/robots.txt. Each subdomain needs its own file.

Done for you

Want these fixed? We build it right.

LastingWeb builds fast, secure, compliant websites for professional firms — hosting, TLS, email authentication and GDPR-friendly analytics included.

See packages