Quick answerWhat is a robots.txt generator?
A robots.txt generator builds the robots.txt file that tells crawlers which parts of your site they may request. This one has simple options for search engines and for AI crawlers, adds your sitemap line and lets you copy or download the finished file.
What does a robots.txt file do?
A robots.txt file tells search engine crawlers which URLs they can access on your site. Google says it is used mainly to manage crawler traffic, not to keep a page out of search results.
The file sits in the root folder, so it opens at yourdomain.com/robots.txt. It is a polite request that well-behaved crawlers follow. It is not a lock, so never rely on it to protect private content. See Google's introduction to robots.txt for the details.
How do I block AI crawlers in robots.txt?
Add a separate User-agent group for each AI crawler you want to block, followed by Disallow: /. The robots.txt generator does this with one click per crawler.
The important step is choosing which kind of crawler to block. Training crawlers collect content for models, while search crawlers decide whether your pages appear in answers. Many sites allow search and block training. The generator has a quick set for exactly that.
| Crawler | Operator | Main purpose |
| GPTBot | OpenAI | Training generative AI models. |
| OAI-SearchBot | OpenAI | Surfacing sites in ChatGPT search. |
| ChatGPT-User | OpenAI | Visits triggered by a user action. |
| Googlebot | Google | Google Search crawling. |
How should I write Googlebot and GPTBot rules together?
Give each crawler its own group and repeat any path blocks inside it, because a crawler that has its own group ignores the general one.
This is a common mistake. If you block /admin/ for all crawlers and then add a group for GPTBot, GPTBot no longer follows the general block unless you repeat it. The robots.txt generator repeats your path rules inside each named group, so your blocks stay in force. It also warns about errors such as a missing leading slash.
How do I check and upload the file?
Copy or download the file, upload it as robots.txt to your site's root folder, then open it in a browser to confirm it loads.
A wrong rule can hide your whole site, so read the file once before uploading. Afterwards, run the AI Visibility Checker to confirm that your search crawlers are still allowed, and add the same sitemap address you extracted with the Sitemap URL Extractor.
Conclusion
A good robots.txt file is short and deliberate. Use the robots.txt generator to set clear rules for search and AI crawlers, keep your sitemap line in place, and test the live file after every change.
Try it free →