How to Block ChatGPT-User

Complete guide to blocking ChatGPT-User (OpenAI) from crawling your website using robots.txt, server configuration, and Switch workflows.

Operated by OpenAIAI Assistants

Should You Block ChatGPT-User?

Blocking ChatGPT-User prevents your content from appearing in OpenAI's AI-generated answers. Each visit from this agent represents a real user asking about your content.

Consider allowing ChatGPT-User for visibility, or use Switch to serve agent-optimized markdown content instead of blocking entirely.

Blocking Methods

1robots.txt

High for cooperative crawlers

Add a Disallow rule for ChatGPT-User's user-agent string in your robots.txt file. This is the standard, cooperative method that well-behaved crawlers respect.

2Server-side UA filtering

High

Configure your web server (nginx, Apache, Cloudflare) to reject requests matching ChatGPT-User's user-agent patterns. This blocks at the network level before your application processes the request.

3Switch Journey Workflows

Highest — granular, real-time control

Create a custom journey in Switch that detects ChatGPT-User and routes it to a block action, challenge, redirect, or modified content — without touching your server configuration.

robots.txt — Block ChatGPT-User

Add the following to your robots.txt file (at the root of your domain) to block ChatGPT-User:

User-agent: ChatGPT-User
Disallow: /

User-agent: chatgpt
Disallow: /

robots.txt — Allow with Restrictions

Alternatively, allow ChatGPT-User on most pages while blocking specific directories:

User-agent: ChatGPT-User
Disallow: /private/
Allow: /

User-agent: chatgpt
Disallow: /private/
Allow: /

ChatGPT-User User-Agent Strings

Use these patterns to identify ChatGPT-User in your server logs or firewall rules:

ChatGPT-User
chatgpt

Frequently Asked Questions

Does blocking ChatGPT-User affect my Google search rankings?

No. Blocking ChatGPT-User does not affect your Google search rankings. Only blocking Googlebot impacts Google Search visibility.

Does ChatGPT-User respect robots.txt?

Yes, ChatGPT-User respects robots.txt directives. Adding a Disallow rule for its user-agent will prevent it from crawling blocked paths.

Can I allow ChatGPT-User on some pages but not others?

Yes. Use robots.txt to disallow specific directories, or use Switch journey workflows for granular page-level control with conditional logic.

Go beyond robots.txt

Switch detects ChatGPT-User in real-time and lets you build custom journey workflows — block, challenge, redirect, or serve modified content. No server changes required.

Get Started Free