If you have looked at your server logs lately, you have probably seen a visitor called GPTBot. It is OpenAI's web crawler. This post covers what the GPTBot user agent looks like, how it differs from OpenAI's other bots, and how to control it.
What the GPTBot user agent looks like
The user agent token is simply:
GPTBot The full string in your logs looks like this (the version number changes over time):
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot) Match on the token GPTBot, not on the full string, so your rules keep working when the version changes.
GPTBot is not the only OpenAI bot
This is where most people get confused. OpenAI runs three separate agents:
| User agent | What it does |
|---|---|
GPTBot | Crawls pages that may be used to train models |
OAI-SearchBot | Indexes pages so they can appear in ChatGPT search results |
ChatGPT-User | Fetches a page when a user asks ChatGPT to look at it |
Blocking GPTBot does not remove you from ChatGPT search. Blocking OAI-SearchBot does. Many site owners block everything with "GPT" in the name and then wonder why ChatGPT never mentions them.
How to allow or block it in robots.txt
Allow GPTBot everywhere:
User-agent: GPTBot Allow: / Block it everywhere:
User-agent: GPTBot Disallow: / Allow it, but keep it out of private areas:
User-agent: GPTBot Disallow: /account/ Disallow: /cart/ Allow: / How to verify a request is really GPTBot
Any script can fake a user agent. OpenAI publishes the IP ranges its crawlers use, so if you need certainty, compare the request IP against that list instead of trusting the header.
Should a business site block it?
For most businesses, no. If you sell a product or a service, you want AI assistants to know what you offer, where you are and why people choose you. Publishers with paid content have a different calculation.
Whatever you decide, make it a decision. A lot of sites block AI crawlers by accident through a security plugin, a CDN bot setting or an old robots.txt rule.
Check what your site is doing right now
You can read your robots.txt by hand, or run your URL through a free AI crawler checker that shows which AI bots can reach your pages. For a longer plain language guide to the GPTBot user agent, MyWebRank has one in its learn section.
Summary
- Token to match:
GPTBot - Training crawler: GPTBot. Search: OAI-SearchBot. User requests: ChatGPT-User.
- Control all three in robots.txt, separately.
- Verify by IP if it matters.
- Check that you are not blocking them by accident.
