How to Block GPTBot (OpenAI) in robots.txt
Exact robots.txt syntax to block OpenAI's GPTBot from crawling your site for ChatGPT training data.
robots.txt Syntax — Block GPTBot
COPY-PASTE READY
User-agent: GPTBot Disallow: /
What This Does
Blocking GPTBot prevents your content from being used in AI training datasets. This does not remove existing knowledge — it only prevents future crawling. Content already in training datasets before you add this block is not retroactively removed.
Validate your robots.txt live — check AI bot coverage and get a corrected file.
Open robots.txt Validator →