SEO Tools

Robots.txt Generator

Create a robots.txt file that tells search engines what to crawl.

Block AI training crawlers

What is robots.txt?

robots.txt is a small text file at the root of a website, for example https://example.com/robots.txt. Search engine crawlers such as Googlebot and Bingbot read it before they crawl your site. It tells them which areas they may visit and where your sitemap is. A correct file keeps crawlers away from pages that should not appear in search, such as admin areas, shopping carts and internal search results, and helps them focus on your important content.

How to create your robots.txt

  1. Keep Allow everything for a normal live website.
  2. List folders or pages crawlers should skip, one per line, each starting with /.
  3. Add the full URL of your XML sitemap.
  4. Optionally block AI crawlers that collect content to train AI models.
  5. Download the file and upload it to the main (root) folder of your website, so it opens at yourdomain.com/robots.txt.

robots.txt syntax

LineMeaning
User-agent: *The rules below apply to all crawlers
Disallow: /admin/Do not crawl anything inside /admin/
Disallow: (empty)Nothing is blocked
Allow: /admin/help.htmlException inside a blocked folder
Disallow: /*.pdf$Block all URLs ending in .pdf (* = anything, $ = end)
Sitemap: https://…/sitemap.xmlWhere to find your sitemap

Important limits of robots.txt

Frequently asked questions

Will blocking GPTBot affect my Google ranking?

No. GPTBot and Google-Extended are separate from Googlebot, which handles search.

How do I test my robots.txt?

Use the robots.txt report in Google Search Console after uploading.

Do I also need a sitemap?

Yes, especially for new sites. Create one with our XML Sitemap Generator.