Short answer: To block GPTBot, add User-agent: GPTBot followed by Disallow: / to the site's robots.txt. To allow it, use Allow: / or leave it out and make sure no wildcard rule blocks it. Blocking GPTBot does not remove a site from Google, because Googlebot is a separate crawler with its own rules. The real risk for agencies is a robots.txt change meant for AI crawlers that also catches Googlebot.
What is GPTBot, and what does blocking it actually change?
GPTBot is OpenAI's crawler for collecting content that may be used to train its models. OpenAI documents it, along with its other user agents, on its bots page. Per that page, the user agents do different jobs, and you can set rules for each one separately.
| User agent | Purpose (per OpenAI) | Effect of blocking |
|---|---|---|
GPTBot | Training data collection | Content is not used for training |
OAI-SearchBot | Surfacing sites in ChatGPT search | Site may not appear in ChatGPT search results |
ChatGPT-User | Visits triggered by a user action | Users' requests to fetch the page may be refused |
None of these is Googlebot. Google's own opt-out for AI uses is a separate robots.txt token called Google-Extended, which is described on Google's crawler overview page. Blocking GPTBot changes nothing about Google Search indexing.
What does the robots.txt rule look like?
To block GPTBot only:
User-agent: GPTBot Disallow: /
To block it from one folder only:
User-agent: GPTBot Disallow: /private/
To keep it out of everything except a public section:
User-agent: GPTBot Allow: /blog/ Disallow: /
Each group starts with a User-agent line. A crawler follows the most specific group that names it, so a GPTBot group overrides the User-agent: * group for that bot. Google describes these matching rules in its robots.txt documentation.
How do you check what a client site serves right now?
Run this from any terminal:
curl -s https://example.com/robots.txt | grep -i -A2 "gptbot\|user-agent: \*"
A site that has been blocked for AI crawlers typically prints something like User-agent: GPTBot followed by Disallow: /. If the output shows only User-agent: * with Disallow: /, that is a different and much bigger problem: it blocks every crawler that has no group of its own, Googlebot included. This usually comes from a staging robots.txt that was copied to production.
If you would rather not read the file by hand, the AI crawler checker shows which AI user agents a site's robots.txt allows or blocks.
How do you change it on a WordPress client site?
- Open
https://clientsite.com/robots.txtin a browser first. Note whether it is a real file on the server or one WordPress generates on the fly. If a physicalrobots.txtexists in the site root, WordPress does not generate its own. - If it is a physical file, edit it over SFTP or the host's file manager and add the GPTBot group.
- If it is generated, your SEO plugin usually has a robots.txt editor. Add the rules there. Developers can also use the
robots_txtfilter from the WordPress code reference. - Reload
/robots.txtwith the cache cleared. Page caches and CDNs often serve an old copy for hours. - Confirm that Googlebot is still allowed. Open Search Console and inspect the homepage, or read the robots.txt report.
One common trap: the WordPress setting that discourages search engines from indexing the site adds noindex to pages and changes the generated robots.txt. It is a site-wide switch, not a GPTBot switch, and it is often left on after a staging launch.
What if the site is behind Cloudflare?
Cloudflare can block AI crawlers before the request reaches the origin, no matter what robots.txt says. Cloudflare's docs describe a Block AI bots setting under its bot controls, and it can also manage a robots.txt on your behalf. If a client says GPTBot is allowed in robots.txt but still cannot reach the site, check the Cloudflare dashboard before the file. The reverse also applies: a robots.txt Disallow only asks politely, and a crawler that ignores it still gets through unless a firewall rule stops it.
What do you tell the client?
Keep it short and give them the decision, not the jargon:
- Blocking GPTBot stops OpenAI using the site's content for training. It does not affect Google rankings.
- Allowing OAI-SearchBot is what lets the site appear in ChatGPT search. A client who wants to be cited there should not block it.
- robots.txt is a request. Well-behaved crawlers follow it, others may not.
- Whatever they choose, you will keep it from breaking Google. Say that out loud, because it is the part they care about.
One anonymised case from our own checks: a small business site had a developer paste in an AI-blocking snippet that included User-agent: * and Disallow: / by mistake. The site looked fine to every visitor, but all crawlers were told to stay out until someone read the file.
How does quietwatch catch this daily?
quietwatch reads each client site's robots.txt every day and flags a change that blocks Googlebot or the AI crawlers you decided to allow, so a bad paste does not sit unnoticed for weeks. See what quietwatch checks every day for the full list. The free AI crawler checker above is the place to start.