Skip to content
DeveloperPK

Robots.txt Generator

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

One per line, e.g. /admin or /*?sort=
Exceptions inside a disallowed folder, e.g. /admin/public
Optional. Google ignores it.
Block AI crawlers

Stops these bots collecting your pages for AI training. Search engines are not affected.

Upload it to the root of your site so it opens at yourdomain.com/robots.txt.

How to use the Robots.txt Generator

  1. 1

    Choose whether crawlers may visit the site, or block it entirely for a staging site.

  2. 2

    List the folders you do not want crawled, such as /admin or /checkout, one per line.

  3. 3

    Add your sitemap URL and, if you want, tick the AI crawlers to block.

  4. 4

    Download robots.txt and upload it to the root of your domain.

About this tool

robots.txt is a plain text file at the root of a website that tells crawlers which parts they may visit. It keeps search engines away from admin areas, carts and duplicate filtered pages, so they spend their time on the pages you want ranked.

It is a request, not a lock: well-behaved crawlers follow it, but it does not hide pages from people. To keep a page out of search results, use a noindex tag instead, and to protect private content, use a login.

AI companies run their own crawlers to collect training data. You can block them separately here without affecting Google or Bing search.

Frequently Asked Questions

Where does robots.txt go?

In the root folder of your domain, so it opens at https://yourdomain.com/robots.txt. Each subdomain needs its own file.

Will Disallow remove a page from Google?

Not reliably. Disallow stops crawling, but a blocked page can still appear in results if other sites link to it. Use a noindex meta tag on a crawlable page to remove it from search.

Does blocking GPTBot affect my Google rankings?

No. GPTBot, ClaudeBot and the other AI crawlers are separate from Googlebot and Bingbot, so blocking them does not change how search engines crawl or rank your site.

Why add the sitemap to robots.txt?

It tells every crawler where your sitemap is, so new and updated pages are found faster, even by search engines you have not submitted the sitemap to.

Need a full SEO audit?

DeveloperPK finds and fixes the technical and content issues holding your site back.

Contact DeveloperPK

Related SEO tools

  • SEO

    Meta Tag Generator

    Write meta titles and descriptions with a live Google preview and length counters.

    Use tool
  • SEO

    Open Graph Preview

    See how a link will look when shared on Facebook, LinkedIn and X.

    Use tool
Robots.txt Generator: Create a robots.txt File Online | DeveloperPK