The Robots.txt Generator writes a robots.txt file for your site from your URL. It allows search crawlers, adds an explicit allow rule for each major AI crawler, and sets a Sitemap line pointing at your sitemap.xml. A few example Disallow lines for /api/, /admin/ and sort parameters are included. Delete the ones that do not apply, then upload the file to your site root.
Updated
Enter your site address and the tool writes a robots.txt for it. The file has three parts: a rule for all crawlers, an allow rule for each major AI crawler, and a Sitemap line.
Save the result as robots.txt and upload it to the root of your site, so it loads at yourdomain.com/robots.txt. A robots.txt placed in a subfolder is ignored.
Each part of the output does one job.
| Line | What it does |
|---|---|
| User-agent: * and Allow: / | Lets all crawlers reach the site |
| Disallow: /api/ and /admin/ | Keeps those two folders out of crawls |
| Disallow: /*?*sort= | Skips URLs that carry a sort parameter |
| AI crawler block | An explicit allow rule for each AI crawler the tool tracks |
| Sitemap: | Points to yourdomain.com/sitemap.xml |
The Disallow lines are examples. Your site may not have an /admin/ folder or a sort parameter, and it may have private areas the tool cannot know about.
OpenAI's training crawler is GPTBot, while OAI-SearchBot is the one ChatGPT search uses. If you want to be open to one and closed to the other, change the matching rule.
After you upload it, run your site through the robots.txt checker. It parses every rule and flags a blanket block, unknown directives and a missing Sitemap line.
Peak Answer runs checks like these every week, then writes the content and gets the placements.