Skip to content

Instantly share code, notes, and snippets.

@ruyrocha
Forked from JayPeet/OpenAI_Nginx_DenyList
Created September 5, 2024 04:01
Show Gist options
  • Save ruyrocha/cf8572a086e912188935f00d538a7a76 to your computer and use it in GitHub Desktop.
Save ruyrocha/cf8572a086e912188935f00d538a7a76 to your computer and use it in GitHub Desktop.
Nginx OpenAI Deny List
# IPs taken from:
# https://openai.com/searchbot.json
# https://openai.com/chatgpt-user.json
# https://openai.com/gptbot.json
# And presumably could change.
location /
{
#deny OAI-SearchBot
deny 20.42.10.176/28;
deny 172.203.190.128/28;
#deny ChatGPT-User
deny 23.98.142.176/28;
deny 40.84.180.224/28;
deny 13.65.240.240/28;
deny 20.97.189.96/28;
deny 20.161.75.208/28;
deny 52.225.75.208/28;
deny 52.156.77.144/28;
deny 40.84.221.208/28;
deny 40.84.221.224/28;
deny 40.84.180.64/28;
#Deny GPTBot
deny 52.230.152.0/24;
deny 52.233.106.0/24;
deny 20.171.206.0/24;
#The rest of your location config...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment