resulthack

All AI crawlers /

ChatGPT-User

OpenAI · User fetch · robots.txt: Not always

Visits a web page when a ChatGPT or Custom GPT user's request needs it; it does not crawl the web automatically.

Block ChatGPT-User

User-agent: ChatGPT-User
Disallow: /

A Disallow line may not stop ChatGPT-User, because OpenAI says robots.txt may not apply to user-initiated visits. It also has no bearing on ChatGPT search: OpenAI says to use OAI-SearchBot for search opt-outs.

Allow ChatGPT-User

User-agent: ChatGPT-User
Allow: /

An allow group only changes anything if a broader rule would block ChatGPT-User. Under the robots.txt standard (RFC 9309, section 2.2.1) a crawler follows the group that names it and uses the User-agent: * group only when no group does — so this group lets it in even if your * group says Disallow: /. Token matching is case-insensitive.

Put these lines in /robots.txt at the root of each host (each subdomain has its own file). robots.txt is a request to well-behaved crawlers, not access control.

Block or allow it at the server

robots.txt asks; a server rule refuses. Every rule here matches ChatGPT-User, spelled as in the User-Agent OpenAI documents (“ChatGPT-User/1.0”), and matches it case-sensitively. The server answers 403.

What a User-Agent rule cannot do: any client can send any User-Agent. Access control by User-Agent is an unreliable technique, since the User-Agent header can be set to anything at all, at the whim of the end user. (Apache HTTP Server 2.4 documentation). A fake ChatGPT-User is refused by the block rule along with the real one, and a crawler that hides its name passes. The “only the real one” rule is the check: it lets the name in only from OpenAI's published addresses.

Your server

To block it: refuse every request that says ChatGPT-User

In the server block (or a location)

if ($http_user_agent ~ ChatGPT-User) {
    return 403;
}

To allow only the real one: refuse ChatGPT-User claims from outside OpenAI's list

In the http block

geo $chatgpt_user_unlisted {
    default 1;
    104.208.184.192/28 0;
    104.210.139.192/28 0;
    104.210.139.224/28 0;
    128.85.198.32/28 0;
    13.65.138.112/28 0;
    13.67.72.16/28 0;
    13.71.2.208/28 0;
    13.76.116.80/28 0;
    13.76.32.208/28 0;
    13.83.167.128/28 0;
    13.83.237.176/28 0;
    132.196.82.48/28 0;
    134.138.52.128/28 0;
    134.138.52.16/28 0;
    134.138.52.64/28 0;
    134.138.52.96/28 0;
    134.138.57.176/28 0;
    134.138.57.64/28 0;
    134.138.57.80/28 0;
    134.138.58.32/28 0;
    134.149.233.80/28 0;
    134.33.102.192/28 0;
    135.116.136.160/28 0;
    135.13.64.240/28 0;
    135.220.73.208/28 0;
    135.220.73.240/28 0;
    135.237.131.208/28 0;
    135.237.133.48/28 0;
    137.135.191.176/28 0;
    138.91.46.96/28 0;
    145.132.136.96/28 0;
    158.158.5.32/28 0;
    168.63.252.240/28 0;
    172.162.248.64/28 0;
    172.170.1.80/28 0;
    172.170.225.0/28 0;
    172.170.241.80/28 0;
    172.172.206.48/28 0;
    172.175.152.224/28 0;
    172.178.140.144/28 0;
    172.178.141.112/28 0;
    172.178.141.128/28 0;
    172.183.143.224/28 0;
    172.183.222.128/28 0;
    172.192.112.208/28 0;
    172.197.160.192/28 0;
    172.197.203.16/28 0;
    172.198.161.128/28 0;
    172.198.58.176/28 0;
    172.198.78.192/28 0;
    172.198.79.112/28 0;
    172.199.137.80/28 0;
    172.204.28.224/28 0;
    172.204.96.80/28 0;
    172.205.189.192/28 0;
    172.206.38.240/28 0;
    172.207.1.32/28 0;
    172.212.172.160/28 0;
    172.215.215.32/28 0;
    191.232.238.96/28 0;
    191.233.197.0/28 0;
    191.233.199.160/28 0;
    191.234.167.144/28 0;
    191.235.99.160/28 0;
    191.237.249.64/28 0;
    20.102.212.144/28 0;
    20.113.211.112/28 0;
    20.113.225.112/28 0;
    20.125.112.224/28 0;
    20.125.144.144/28 0;
    20.161.75.208/28 0;
    20.168.7.192/28 0;
    20.169.73.32/28 0;
    20.169.73.64/28 0;
    20.169.78.128/28 0;
    20.169.78.160/28 0;
    20.169.78.192/28 0;
    20.169.78.48/28 0;
    20.169.78.64/28 0;
    20.169.86.224/28 0;
    20.169.86.240/28 0;
    20.170.184.16/28 0;
    20.170.184.32/28 0;
    20.170.184.48/28 0;
    20.170.184.64/28 0;
    20.170.184.80/28 0;
    20.172.29.32/28 0;
    20.199.211.160/28 0;
    20.199.242.0/28 0;
    20.200.212.240/28 0;
    20.206.101.192/28 0;
    20.210.211.192/28 0;
    20.212.62.208/28 0;
    20.215.187.208/28 0;
    20.215.219.128/28 0;
    20.215.219.160/28 0;
    20.215.219.208/28 0;
    20.218.30.240/28 0;
    20.219.161.192/28 0;
    20.219.184.96/28 0;
    20.219.71.192/28 0;
    20.222.36.192/28 0;
    20.227.140.32/28 0;
    20.228.106.176/28 0;
    20.235.87.224/28 0;
    20.249.63.208/28 0;
    20.250.136.64/28 0;
    20.250.6.128/28 0;
    20.254.201.208/28 0;
    20.45.178.144/28 0;
    20.55.229.144/28 0;
    20.57.199.192/28 0;
    20.63.180.96/28 0;
    20.63.221.64/28 0;
    20.78.130.48/28 0;
    20.83.243.176/28 0;
    20.98.18.80/28 0;
    23.101.217.176/28 0;
    23.102.140.144/28 0;
    23.102.141.32/28 0;
    23.98.142.176/28 0;
    23.98.186.176/28 0;
    23.98.186.192/28 0;
    23.98.186.64/28 0;
    23.98.186.96/28 0;
    4.151.119.48/28 0;
    4.151.71.176/28 0;
    4.189.118.208/28 0;
    4.189.119.48/28 0;
    4.197.115.112/28 0;
    4.197.22.112/28 0;
    4.197.64.0/28 0;
    4.197.64.16/28 0;
    4.197.64.48/28 0;
    4.197.64.64/28 0;
    4.201.232.64/28 0;
    4.205.128.176/28 0;
    4.218.24.64/28 0;
    4.226.200.16/28 0;
    4.226.226.32/28 0;
    40.116.73.208/28 0;
    40.119.36.240/28 0;
    40.124.161.0/28 0;
    40.74.200.208/28 0;
    40.81.234.144/28 0;
    40.81.67.96/28 0;
    40.84.221.208/28 0;
    40.84.221.224/28 0;
    48.221.184.80/28 0;
    48.221.184.96/28 0;
    48.221.40.176/28 0;
    51.116.2.80/28 0;
    51.116.221.96/28 0;
    51.57.0.96/28 0;
    51.59.24.64/28 0;
    51.59.24.80/28 0;
    51.59.48.80/28 0;
    51.8.155.112/28 0;
    51.8.155.48/28 0;
    52.148.129.32/28 0;
    52.156.77.144/28 0;
    52.159.227.32/28 0;
    52.159.249.96/28 0;
    52.161.49.96/28 0;
    52.165.212.48/28 0;
    52.172.129.160/28 0;
    52.173.219.112/28 0;
    52.173.219.96/28 0;
    52.173.221.16/28 0;
    52.173.221.176/28 0;
    52.173.221.208/28 0;
    52.173.234.16/28 0;
    52.173.234.80/28 0;
    52.183.217.240/28 0;
    52.190.137.144/28 0;
    52.190.137.16/28 0;
    52.190.139.48/28 0;
    52.190.142.64/28 0;
    52.190.190.16/28 0;
    52.190.251.112/28 0;
    52.225.75.208/28 0;
    52.231.30.48/28 0;
    52.231.34.176/28 0;
    52.231.39.144/28 0;
    52.231.50.64/28 0;
    52.236.94.144/28 0;
    52.241.146.208/28 0;
    52.242.132.224/28 0;
    52.242.132.240/28 0;
    52.255.109.144/28 0;
    52.255.109.80/28 0;
    52.255.109.96/28 0;
    52.255.111.0/28 0;
    52.255.111.80/28 0;
    57.154.174.112/28 0;
    57.154.175.0/28 0;
    57.154.187.32/28 0;
    68.154.28.96/28 0;
    68.220.57.64/28 0;
    70.153.189.192/28 0;
    70.153.32.16/28 0;
    70.153.32.32/28 0;
    70.153.87.224/28 0;
    70.156.152.96/28 0;
    74.161.200.96/28 0;
    74.224.217.64/28 0;
    74.226.253.160/28 0;
    74.248.37.160/28 0;
    74.7.35.112/28 0;
    74.7.35.48/28 0;
    74.7.36.64/28 0;
    74.7.36.80/28 0;
    74.7.36.96/28 0;
    85.211.128.16/28 0;
    85.211.128.32/28 0;
    9.129.0.0/17 0;
    9.160.128.16/28 0;
    9.160.128.64/28 0;
    9.160.163.128/28 0;
    9.160.34.144/28 0;
    9.160.36.16/28 0;
    9.160.96.16/28 0;
    9.163.101.48/28 0;
    9.205.128.32/28 0;
    9.205.128.48/28 0;
    9.205.25.128/28 0;
    9.205.30.128/28 0;
    9.205.30.144/28 0;
    9.205.30.176/28 0;
    9.205.8.48/28 0;
    9.205.8.64/28 0;
    9.223.181.208/28 0;
    9.234.96.192/28 0;
    9.234.97.96/28 0;
}
map $http_user_agent $chatgpt_user_fake {
    default 0;
    "~ChatGPT-User" $chatgpt_user_unlisted;
}

In the server block (or a location)

if ($chatgpt_user_fake) {
    return 403;
}

The geo and map blocks go at http level; nginx's docs give Context: http for both, and for if Context: server, location. By default, the address is taken from the $remote_addr variable (nginx documentation).

To block it: refuse every request that says ChatGPT-User

In the virtual host, a <Directory> block or .htaccess

<If "%{HTTP_USER_AGENT} =~ /ChatGPT-User/">
    Require all denied
</If>

To allow only the real one: refuse ChatGPT-User claims from outside OpenAI's list

In the virtual host, a <Directory> block or .htaccess

<If "%{HTTP_USER_AGENT} =~ /ChatGPT-User/">
    Require ip 104.208.184.192/28 104.210.139.192/28 104.210.139.224/28 128.85.198.32/28 13.65.138.112/28 13.67.72.16/28
    Require ip 13.71.2.208/28 13.76.116.80/28 13.76.32.208/28 13.83.167.128/28 13.83.237.176/28 132.196.82.48/28
    Require ip 134.138.52.128/28 134.138.52.16/28 134.138.52.64/28 134.138.52.96/28 134.138.57.176/28 134.138.57.64/28
    Require ip 134.138.57.80/28 134.138.58.32/28 134.149.233.80/28 134.33.102.192/28 135.116.136.160/28 135.13.64.240/28
    Require ip 135.220.73.208/28 135.220.73.240/28 135.237.131.208/28 135.237.133.48/28 137.135.191.176/28 138.91.46.96/28
    Require ip 145.132.136.96/28 158.158.5.32/28 168.63.252.240/28 172.162.248.64/28 172.170.1.80/28 172.170.225.0/28
    Require ip 172.170.241.80/28 172.172.206.48/28 172.175.152.224/28 172.178.140.144/28 172.178.141.112/28 172.178.141.128/28
    Require ip 172.183.143.224/28 172.183.222.128/28 172.192.112.208/28 172.197.160.192/28 172.197.203.16/28 172.198.161.128/28
    Require ip 172.198.58.176/28 172.198.78.192/28 172.198.79.112/28 172.199.137.80/28 172.204.28.224/28 172.204.96.80/28
    Require ip 172.205.189.192/28 172.206.38.240/28 172.207.1.32/28 172.212.172.160/28 172.215.215.32/28 191.232.238.96/28
    Require ip 191.233.197.0/28 191.233.199.160/28 191.234.167.144/28 191.235.99.160/28 191.237.249.64/28 20.102.212.144/28
    Require ip 20.113.211.112/28 20.113.225.112/28 20.125.112.224/28 20.125.144.144/28 20.161.75.208/28 20.168.7.192/28
    Require ip 20.169.73.32/28 20.169.73.64/28 20.169.78.128/28 20.169.78.160/28 20.169.78.192/28 20.169.78.48/28
    Require ip 20.169.78.64/28 20.169.86.224/28 20.169.86.240/28 20.170.184.16/28 20.170.184.32/28 20.170.184.48/28
    Require ip 20.170.184.64/28 20.170.184.80/28 20.172.29.32/28 20.199.211.160/28 20.199.242.0/28 20.200.212.240/28
    Require ip 20.206.101.192/28 20.210.211.192/28 20.212.62.208/28 20.215.187.208/28 20.215.219.128/28 20.215.219.160/28
    Require ip 20.215.219.208/28 20.218.30.240/28 20.219.161.192/28 20.219.184.96/28 20.219.71.192/28 20.222.36.192/28
    Require ip 20.227.140.32/28 20.228.106.176/28 20.235.87.224/28 20.249.63.208/28 20.250.136.64/28 20.250.6.128/28
    Require ip 20.254.201.208/28 20.45.178.144/28 20.55.229.144/28 20.57.199.192/28 20.63.180.96/28 20.63.221.64/28
    Require ip 20.78.130.48/28 20.83.243.176/28 20.98.18.80/28 23.101.217.176/28 23.102.140.144/28 23.102.141.32/28
    Require ip 23.98.142.176/28 23.98.186.176/28 23.98.186.192/28 23.98.186.64/28 23.98.186.96/28 4.151.119.48/28
    Require ip 4.151.71.176/28 4.189.118.208/28 4.189.119.48/28 4.197.115.112/28 4.197.22.112/28 4.197.64.0/28
    Require ip 4.197.64.16/28 4.197.64.48/28 4.197.64.64/28 4.201.232.64/28 4.205.128.176/28 4.218.24.64/28
    Require ip 4.226.200.16/28 4.226.226.32/28 40.116.73.208/28 40.119.36.240/28 40.124.161.0/28 40.74.200.208/28
    Require ip 40.81.234.144/28 40.81.67.96/28 40.84.221.208/28 40.84.221.224/28 48.221.184.80/28 48.221.184.96/28
    Require ip 48.221.40.176/28 51.116.2.80/28 51.116.221.96/28 51.57.0.96/28 51.59.24.64/28 51.59.24.80/28
    Require ip 51.59.48.80/28 51.8.155.112/28 51.8.155.48/28 52.148.129.32/28 52.156.77.144/28 52.159.227.32/28
    Require ip 52.159.249.96/28 52.161.49.96/28 52.165.212.48/28 52.172.129.160/28 52.173.219.112/28 52.173.219.96/28
    Require ip 52.173.221.16/28 52.173.221.176/28 52.173.221.208/28 52.173.234.16/28 52.173.234.80/28 52.183.217.240/28
    Require ip 52.190.137.144/28 52.190.137.16/28 52.190.139.48/28 52.190.142.64/28 52.190.190.16/28 52.190.251.112/28
    Require ip 52.225.75.208/28 52.231.30.48/28 52.231.34.176/28 52.231.39.144/28 52.231.50.64/28 52.236.94.144/28
    Require ip 52.241.146.208/28 52.242.132.224/28 52.242.132.240/28 52.255.109.144/28 52.255.109.80/28 52.255.109.96/28
    Require ip 52.255.111.0/28 52.255.111.80/28 57.154.174.112/28 57.154.175.0/28 57.154.187.32/28 68.154.28.96/28
    Require ip 68.220.57.64/28 70.153.189.192/28 70.153.32.16/28 70.153.32.32/28 70.153.87.224/28 70.156.152.96/28
    Require ip 74.161.200.96/28 74.224.217.64/28 74.226.253.160/28 74.248.37.160/28 74.7.35.112/28 74.7.35.48/28
    Require ip 74.7.36.64/28 74.7.36.80/28 74.7.36.96/28 85.211.128.16/28 85.211.128.32/28 9.129.0.0/17
    Require ip 9.160.128.16/28 9.160.128.64/28 9.160.163.128/28 9.160.34.144/28 9.160.36.16/28 9.160.96.16/28
    Require ip 9.163.101.48/28 9.205.128.32/28 9.205.128.48/28 9.205.25.128/28 9.205.30.128/28 9.205.30.144/28
    Require ip 9.205.30.176/28 9.205.8.48/28 9.205.8.64/28 9.223.181.208/28 9.234.96.192/28 9.234.97.96/28
</If>

Apache httpd 2.4. Syntax: <If expression> ... </If> Context: server config, virtual host, directory, .htaccess (Apache HTTP Server 2.4 documentation). Several Require ip lines in one block: When multiple Require directives are used in a single configuration section and are not contained in another authorization directive like <RequireAll>, they are implicitly contained within a <RequireAny> directive. (Apache HTTP Server 2.4 documentation)

To block it: refuse every request that says ChatGPT-User

Inside the site block

@chatgpt-user header User-Agent *ChatGPT-User*
respond @chatgpt-user 403

To allow only the real one: refuse ChatGPT-User claims from outside OpenAI's list

Inside the site block

@fake-chatgpt-user {
    header User-Agent *ChatGPT-User*
    not {
        client_ip 104.208.184.192/28 104.210.139.192/28 104.210.139.224/28 128.85.198.32/28 13.65.138.112/28 13.67.72.16/28
        client_ip 13.71.2.208/28 13.76.116.80/28 13.76.32.208/28 13.83.167.128/28 13.83.237.176/28 132.196.82.48/28
        client_ip 134.138.52.128/28 134.138.52.16/28 134.138.52.64/28 134.138.52.96/28 134.138.57.176/28 134.138.57.64/28
        client_ip 134.138.57.80/28 134.138.58.32/28 134.149.233.80/28 134.33.102.192/28 135.116.136.160/28 135.13.64.240/28
        client_ip 135.220.73.208/28 135.220.73.240/28 135.237.131.208/28 135.237.133.48/28 137.135.191.176/28 138.91.46.96/28
        client_ip 145.132.136.96/28 158.158.5.32/28 168.63.252.240/28 172.162.248.64/28 172.170.1.80/28 172.170.225.0/28
        client_ip 172.170.241.80/28 172.172.206.48/28 172.175.152.224/28 172.178.140.144/28 172.178.141.112/28 172.178.141.128/28
        client_ip 172.183.143.224/28 172.183.222.128/28 172.192.112.208/28 172.197.160.192/28 172.197.203.16/28 172.198.161.128/28
        client_ip 172.198.58.176/28 172.198.78.192/28 172.198.79.112/28 172.199.137.80/28 172.204.28.224/28 172.204.96.80/28
        client_ip 172.205.189.192/28 172.206.38.240/28 172.207.1.32/28 172.212.172.160/28 172.215.215.32/28 191.232.238.96/28
        client_ip 191.233.197.0/28 191.233.199.160/28 191.234.167.144/28 191.235.99.160/28 191.237.249.64/28 20.102.212.144/28
        client_ip 20.113.211.112/28 20.113.225.112/28 20.125.112.224/28 20.125.144.144/28 20.161.75.208/28 20.168.7.192/28
        client_ip 20.169.73.32/28 20.169.73.64/28 20.169.78.128/28 20.169.78.160/28 20.169.78.192/28 20.169.78.48/28
        client_ip 20.169.78.64/28 20.169.86.224/28 20.169.86.240/28 20.170.184.16/28 20.170.184.32/28 20.170.184.48/28
        client_ip 20.170.184.64/28 20.170.184.80/28 20.172.29.32/28 20.199.211.160/28 20.199.242.0/28 20.200.212.240/28
        client_ip 20.206.101.192/28 20.210.211.192/28 20.212.62.208/28 20.215.187.208/28 20.215.219.128/28 20.215.219.160/28
        client_ip 20.215.219.208/28 20.218.30.240/28 20.219.161.192/28 20.219.184.96/28 20.219.71.192/28 20.222.36.192/28
        client_ip 20.227.140.32/28 20.228.106.176/28 20.235.87.224/28 20.249.63.208/28 20.250.136.64/28 20.250.6.128/28
        client_ip 20.254.201.208/28 20.45.178.144/28 20.55.229.144/28 20.57.199.192/28 20.63.180.96/28 20.63.221.64/28
        client_ip 20.78.130.48/28 20.83.243.176/28 20.98.18.80/28 23.101.217.176/28 23.102.140.144/28 23.102.141.32/28
        client_ip 23.98.142.176/28 23.98.186.176/28 23.98.186.192/28 23.98.186.64/28 23.98.186.96/28 4.151.119.48/28
        client_ip 4.151.71.176/28 4.189.118.208/28 4.189.119.48/28 4.197.115.112/28 4.197.22.112/28 4.197.64.0/28
        client_ip 4.197.64.16/28 4.197.64.48/28 4.197.64.64/28 4.201.232.64/28 4.205.128.176/28 4.218.24.64/28
        client_ip 4.226.200.16/28 4.226.226.32/28 40.116.73.208/28 40.119.36.240/28 40.124.161.0/28 40.74.200.208/28
        client_ip 40.81.234.144/28 40.81.67.96/28 40.84.221.208/28 40.84.221.224/28 48.221.184.80/28 48.221.184.96/28
        client_ip 48.221.40.176/28 51.116.2.80/28 51.116.221.96/28 51.57.0.96/28 51.59.24.64/28 51.59.24.80/28
        client_ip 51.59.48.80/28 51.8.155.112/28 51.8.155.48/28 52.148.129.32/28 52.156.77.144/28 52.159.227.32/28
        client_ip 52.159.249.96/28 52.161.49.96/28 52.165.212.48/28 52.172.129.160/28 52.173.219.112/28 52.173.219.96/28
        client_ip 52.173.221.16/28 52.173.221.176/28 52.173.221.208/28 52.173.234.16/28 52.173.234.80/28 52.183.217.240/28
        client_ip 52.190.137.144/28 52.190.137.16/28 52.190.139.48/28 52.190.142.64/28 52.190.190.16/28 52.190.251.112/28
        client_ip 52.225.75.208/28 52.231.30.48/28 52.231.34.176/28 52.231.39.144/28 52.231.50.64/28 52.236.94.144/28
        client_ip 52.241.146.208/28 52.242.132.224/28 52.242.132.240/28 52.255.109.144/28 52.255.109.80/28 52.255.109.96/28
        client_ip 52.255.111.0/28 52.255.111.80/28 57.154.174.112/28 57.154.175.0/28 57.154.187.32/28 68.154.28.96/28
        client_ip 68.220.57.64/28 70.153.189.192/28 70.153.32.16/28 70.153.32.32/28 70.153.87.224/28 70.156.152.96/28
        client_ip 74.161.200.96/28 74.224.217.64/28 74.226.253.160/28 74.248.37.160/28 74.7.35.112/28 74.7.35.48/28
        client_ip 74.7.36.64/28 74.7.36.80/28 74.7.36.96/28 85.211.128.16/28 85.211.128.32/28 9.129.0.0/17
        client_ip 9.160.128.16/28 9.160.128.64/28 9.160.163.128/28 9.160.34.144/28 9.160.36.16/28 9.160.96.16/28
        client_ip 9.163.101.48/28 9.205.128.32/28 9.205.128.48/28 9.205.25.128/28 9.205.30.128/28 9.205.30.144/28
        client_ip 9.205.30.176/28 9.205.8.48/28 9.205.8.64/28 9.223.181.208/28 9.234.96.192/28 9.234.97.96/28
    }
}
respond @fake-chatgpt-user 403

Like directives, named matcher definitions must go inside the site blocks that use them. (Caddy documentation) On client_ip: This matcher is best used when the trusted_proxies global option is configured, otherwise it acts identically to the remote_ip matcher. (Caddy documentation)

To block it: refuse every request that says ChatGPT-User

Expression of a custom rule; action Block

(http.user_agent contains "ChatGPT-User")

To allow only the real one: refuse ChatGPT-User claims from outside OpenAI's list

Expression of a custom rule; action Block

(http.user_agent contains "ChatGPT-User" and not ip.src in {104.208.184.192/28 104.210.139.192/28 104.210.139.224/28 128.85.198.32/28 13.65.138.112/28 13.67.72.16/28 13.71.2.208/28 13.76.116.80/28 13.76.32.208/28 13.83.167.128/28 13.83.237.176/28 132.196.82.48/28 134.138.52.128/28 134.138.52.16/28 134.138.52.64/28 134.138.52.96/28 134.138.57.176/28 134.138.57.64/28 134.138.57.80/28 134.138.58.32/28 134.149.233.80/28 134.33.102.192/28 135.116.136.160/28 135.13.64.240/28 135.220.73.208/28 135.220.73.240/28 135.237.131.208/28 135.237.133.48/28 137.135.191.176/28 138.91.46.96/28 145.132.136.96/28 158.158.5.32/28 168.63.252.240/28 172.162.248.64/28 172.170.1.80/28 172.170.225.0/28 172.170.241.80/28 172.172.206.48/28 172.175.152.224/28 172.178.140.144/28 172.178.141.112/28 172.178.141.128/28 172.183.143.224/28 172.183.222.128/28 172.192.112.208/28 172.197.160.192/28 172.197.203.16/28 172.198.161.128/28 172.198.58.176/28 172.198.78.192/28 172.198.79.112/28 172.199.137.80/28 172.204.28.224/28 172.204.96.80/28 172.205.189.192/28 172.206.38.240/28 172.207.1.32/28 172.212.172.160/28 172.215.215.32/28 191.232.238.96/28 191.233.197.0/28 191.233.199.160/28 191.234.167.144/28 191.235.99.160/28 191.237.249.64/28 20.102.212.144/28 20.113.211.112/28 20.113.225.112/28 20.125.112.224/28 20.125.144.144/28 20.161.75.208/28 20.168.7.192/28 20.169.73.32/28 20.169.73.64/28 20.169.78.128/28 20.169.78.160/28 20.169.78.192/28 20.169.78.48/28 20.169.78.64/28 20.169.86.224/28 20.169.86.240/28 20.170.184.16/28 20.170.184.32/28 20.170.184.48/28 20.170.184.64/28 20.170.184.80/28 20.172.29.32/28 20.199.211.160/28 20.199.242.0/28 20.200.212.240/28 20.206.101.192/28 20.210.211.192/28 20.212.62.208/28 20.215.187.208/28 20.215.219.128/28 20.215.219.160/28 20.215.219.208/28 20.218.30.240/28 20.219.161.192/28 20.219.184.96/28 20.219.71.192/28 20.222.36.192/28 20.227.140.32/28 20.228.106.176/28 20.235.87.224/28 20.249.63.208/28 20.250.136.64/28 20.250.6.128/28 20.254.201.208/28 20.45.178.144/28 20.55.229.144/28 20.57.199.192/28 20.63.180.96/28 20.63.221.64/28 20.78.130.48/28 20.83.243.176/28 20.98.18.80/28 23.101.217.176/28 23.102.140.144/28 23.102.141.32/28 23.98.142.176/28 23.98.186.176/28 23.98.186.192/28 23.98.186.64/28 23.98.186.96/28 4.151.119.48/28 4.151.71.176/28 4.189.118.208/28 4.189.119.48/28 4.197.115.112/28 4.197.22.112/28 4.197.64.0/28 4.197.64.16/28 4.197.64.48/28 4.197.64.64/28 4.201.232.64/28 4.205.128.176/28 4.218.24.64/28 4.226.200.16/28 4.226.226.32/28 40.116.73.208/28 40.119.36.240/28 40.124.161.0/28 40.74.200.208/28 40.81.234.144/28 40.81.67.96/28 40.84.221.208/28 40.84.221.224/28 48.221.184.80/28 48.221.184.96/28 48.221.40.176/28 51.116.2.80/28 51.116.221.96/28 51.57.0.96/28 51.59.24.64/28 51.59.24.80/28 51.59.48.80/28 51.8.155.112/28 51.8.155.48/28 52.148.129.32/28 52.156.77.144/28 52.159.227.32/28 52.159.249.96/28 52.161.49.96/28 52.165.212.48/28 52.172.129.160/28 52.173.219.112/28 52.173.219.96/28 52.173.221.16/28 52.173.221.176/28 52.173.221.208/28 52.173.234.16/28 52.173.234.80/28 52.183.217.240/28 52.190.137.144/28 52.190.137.16/28 52.190.139.48/28 52.190.142.64/28 52.190.190.16/28 52.190.251.112/28 52.225.75.208/28 52.231.30.48/28 52.231.34.176/28 52.231.39.144/28 52.231.50.64/28 52.236.94.144/28 52.241.146.208/28 52.242.132.224/28 52.242.132.240/28 52.255.109.144/28 52.255.109.80/28 52.255.109.96/28 52.255.111.0/28 52.255.111.80/28 57.154.174.112/28 57.154.175.0/28 57.154.187.32/28 68.154.28.96/28 68.220.57.64/28 70.153.189.192/28 70.153.32.16/28 70.153.32.32/28 70.153.87.224/28 70.156.152.96/28 74.161.200.96/28 74.224.217.64/28 74.226.253.160/28 74.248.37.160/28 74.7.35.112/28 74.7.35.48/28 74.7.36.64/28 74.7.36.80/28 74.7.36.96/28 85.211.128.16/28 85.211.128.32/28 9.129.0.0/17 9.160.128.16/28 9.160.128.64/28 9.160.163.128/28 9.160.34.144/28 9.160.36.16/28 9.160.96.16/28 9.163.101.48/28 9.205.128.32/28 9.205.128.48/28 9.205.25.128/28 9.205.30.128/28 9.205.30.144/28 9.205.30.176/28 9.205.8.48/28 9.205.8.64/28 9.223.181.208/28 9.234.96.192/28 9.234.97.96/28})

Each expression is one custom rule with the action Block (Cloudflare's own example: Expression: (cf.bot_management.score lt 2 and http.user_agent contains "App_Name 2.0") Action: Block).

Addresses in the “only the real one” rules: OpenAI's list openai.com/chatgpt-user.json, 234 ranges, fetched 8 Oct 2026, list dated 7 Oct 2026. Operators change their lists; compare the date with the live list before you rely on it.

The IP rules compare the address your server sees. Behind a CDN or load balancer that is the proxy's address, so every claim would be refused: restore the client address first, or put the rule at the CDN.

Syntax from each server's own documentation, fetched 9 Oct 2026: nginx (rewrite module, map module, geo module); Apache (Access Control, <If>, expressions, mod_authz_core, mod_authz_host); Caddy (request matchers, respond); Cloudflare (custom rule example, operators, values and lists, http.user_agent). Every line form above is listed with its quote in server-rules-sources.json.

Who blocks it

Of the 1,000 most-visited domains on Tranco list PY35J (generated 2026-10-08), we read 508 robots.txt files on 2026-10-09 and ran each through the same RFC 9309 matcher as the checker, for the path /. 45 block ChatGPT-User from the whole site by name, 24 block it through their User-agent: * group, and 36 name it with partial rules (some paths closed, the home page open). 14 more name it only to let it in.

45

block it by name 8.9%

24

block it through * 4.7%

36

name it, partial rules 7.1%

Percentages are of the 508 files we could read, not of all 1,000 sites.

Highest-ranked sites that block ChatGPT-User by name

  1. amazon.com rank 27
  2. tiktok.com rank 58
  3. yahoo.com rank 61
  4. msn.com rank 72
  5. amazonvideo.com rank 111
  6. nytimes.com rank 157
  7. cnn.com rank 205
  8. bbc.com rank 221
  9. sciencedirect.com rank 223
  10. bbc.co.uk rank 230

Each links to the site's live robots.txt, which may have changed since 2026-10-09.

robots.txt is only what a site asks for. A site can also turn a crawler away at its firewall or CDN, or let an operator in under a licensing deal, and neither shows in its robots.txt. A block through * stops every crawler the file does not name, so it says nothing about this one in particular. The files we could not read are not counted: 222 of the 1,000 domains are infrastructure names with no website at the bare domain (CDN and DNS zones, for example), 59 answered our request with 401 or 403, 93 failed (timeout, TLS or server error), 59 have no robots.txt (404 and similar) and 59 answered with an HTML page instead of a robots.txt file. Every agent's count, side by side.

Facts

Operator
OpenAI
Purpose
User-requested fetch
Obeys robots.txt
Not always. OpenAI says that because these visits are initiated by a user, robots.txt rules may not apply.
In your server logs
The user-agent string contains "ChatGPT-User/1.0".
How to verify it
Match the request's IP address against OpenAI's published ChatGPT-User IP list.

Published list: openai.com/chatgpt-user.json — 229 IPv4 ranges when we fetched it, list dated 22 Sep 2026. Always match against the live list; operators update them. To count real and fake ChatGPT-User requests in your own server log against this list, drop the log into the log reader.

What OpenAI says

Quoted word for word from the operator's documentation.

“When users ask ChatGPT or a CustomGPT a question, it may visit a web page with a ChatGPT-User agent.”

“ChatGPT-User is not used for crawling the web in an automatic fashion.”

“Because these actions are initiated by a user, robots.txt rules may not apply.”

“ChatGPT-User is not used to determine whether content may appear in Search. Please use OAI-SearchBot in robots.txt for managing Search opt outs and automatic crawl.”

“Full user-agent string: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; ChatGPT-User/1.0;”

“Published IP addresses:”

Sources

Other crawlers from OpenAI

Same purpose, other operators

← All 49 AI crawlers

Made with AI tools. · Privacy