Prebaked
Crawler

GPTBot

Last reviewed

GPTBot is OpenAI's web crawler. OpenAI documents that it crawls content that may be used to train its foundation models. It is separate from OAI-SearchBot, which serves ChatGPT search, and from ChatGPT-User, which fetches pages for a user's request.

GPTBot at a glance
OperatorOpenAI
TypeAI crawler or assistant
User agent containsGPTBot
Full user agentMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot
PurposeCrawls content that may be used to train OpenAI's foundation models.
robots.txtFollows robots.txt. (source)
Runs JavaScriptNot documented by the operator
How to verify itIP ranges published at openai.com/gptbot.json
Official documentationdevelopers.openai.com/api/docs/bots

What it sees on a JavaScript site

A study by Vercel and MERJ, published in December 2024, found that GPTBot did not render JavaScript. It downloads the HTML your server sends and reads that. The operator itself does not document this, and a crawler can change at any time.

On a client-rendered app (React, Vue or a Vite single page app) the HTML response is often a shell: a title, a script tag and an empty <div id="root">. If your content only appears after the scripts run, GPTBot reads little or nothing of it.

How to allow or block it in robots.txt

OpenAI documents that GPTBot follows robots.txt. Its token is GPTBot. Blocking it keeps your pages out of training crawls; OpenAI documents the search crawler, OAI-SearchBot, as a separate token with its own rules.

# Block GPTBot from the whole site
User-agent: GPTBot
Disallow: /

# Or allow it everywhere
User-agent: GPTBot
Allow: /

robots.txt controls whether a bot may fetch a page. It does not change what the bot sees once it fetches it. For the full syntax, see robots.txt.

How Prebaked serves it

Your Prebaked integration looks at the User-Agent header of each request. When it contains GPTBot, the request gets the rendered HTML of your page from Prebaked: the same content a visitor sees after the scripts run. Every other visitor gets your site directly. Prebaked does not change the content for crawlers. The visit shows up in your request log, marked as verified when the IP check passes.

To see what a bot that does not run JavaScript gets from your page, run the free checker. The full list of bots Prebaked serves is on Crawlers.

Can AI search cite your site? Check it free

FAQ

Does GPTBot run JavaScript?

OpenAI does not document it. The Vercel and MERJ study (December 2024) found that GPTBot did not render JavaScript, so content added by scripts is not part of what it read.

How do I block GPTBot in robots.txt?

Add a group with User-agent: GPTBot and Disallow: /. OpenAI documents that GPTBot follows robots.txt.

Not according to OpenAI's documentation. ChatGPT search uses OAI-SearchBot, which has its own robots.txt token. Each token is controlled separately.

How can I tell if a visit is really from GPTBot?

Anyone can send a user agent that says GPTBot. Check the request IP against the IP ranges the operator publishes, listed in the table above. Prebaked does this for you and marks matching visits as verified in your request log.