Files
Surge_by_SukkaW/Source/non_ip/ai.conf
zhaohantao1360-hash 7c67f6c8f0
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy (push) Has been cancelled
Update AI Hosts: Windsurf (Codeium) (#111)
2026-10-12 19:45:24 +08:00

141 lines
4.5 KiB
Plaintext

# $ meta_title Sukka's Ruleset - AIGC Domains
# $ meta_description This file contains domains of OpenAI, Claude.
# >> OpenAI / ChatGPT
# OpenAI A/B Flag, no geo blocking
# DOMAIN,api.statsig.com
DOMAIN-SUFFIX,openai.com
DOMAIN-SUFFIX,oaistatic.com
DOMAIN-SUFFIX,sora.com
DOMAIN-SUFFIX,chatgpt.com
# Confirmed by https://github.com/SukkaW/Surge/pull/105
DOMAIN-SUFFIX,chatgpt.site
DOMAIN-SUFFIX,chat.com
DOMAIN-SUFFIX,ai.com
DOMAIN-KEYWORD,openai
# DOMAIN-SUFFIX,openaiapi-site.azureedge.net
# DOMAIN,openaicom-api-bdcpf8c6d2e9atf6.z01.azurefd.net
# DOMAIN,openaicomproductionae4b.blob.core.windows.net
# DOMAIN,production-openaicom-storage.azureedge.net
# >> Apple Intelligence
# has been moved to a dedicated file: /non_ip/apple_inteligence.conf
# DOMAIN gspe1-ssl.ls.apple.com (which is part of com.apple.geod) is crucial for unlocking
# Apple Intelligence. However, this domain (along side com.apple.geod) also affects other
# Apple services like Map, Compass, Weather, etc. Therefore, we can't really include everything
# in this general "ai.conf" here.
# >> Perplexity
DOMAIN-SUFFIX,perplexity.ai
# >> Anthropic / Claude
DOMAIN-SUFFIX,anthropic.com
DOMAIN-SUFFIX,claude.ai
DOMAIN-SUFFIX,claude.com
# For the record, I don't believe Claude will use Short URLs to geo blocking.
# However, since there is some conspiracy theories surrounding it, I will include it.
DOMAIN-SUFFIX,clau.de
# >> Google
# Gemini
DOMAIN-SUFFIX,bard.google.com
DOMAIN-SUFFIX,gemini.google
DOMAIN-SUFFIX,gemini.google.com
DOMAIN,aisandbox-pa.googleapis.com
DOMAIN,robinfrontend-pa.googleapis.com
# Here is how gemini.google.com doing HTTP 429 right now:
#
# without a special cookie, gemini.google.com will return HTTP 302 to the following URL with
# a special state token URL parameter:
# https://www.google.com/sorry/index?continue=https://gemini.google.com/...
#
# On https://www.google.com/sorry/index?continue=xxx, the CDN edge will validate this state token,
# compare the client IPs, and reject the request with HTTP 429 if the IPs are mismatched
#
# If the IP matches, the CDN edge will return a HTTP 302 redirect back to https://gemini.google.com
# with another special state token URL parameter telling gemini.google.com stop returning HTTP 302
# back to www.google.com/sorry/index?continue=xxx and start serving the real content.
#
# We can simply matches www.google.com/sorry/index?continue=xxx and proxy this as well
#
# Note that you will need to enable MitM www.google.com for this rule to work.
URL-REGEX,https://www\.google\.com/.*continue=https://gemini\.google\.com.+
# DeepMind
DOMAIN-SUFFIX,deepmind.com
DOMAIN-SUFFIX,deepmind.google
# Generative Language API
DOMAIN-SUFFIX,generativelanguage.googleapis.com
DOMAIN-SUFFIX,geller-pa.googleapis.com
DOMAIN-SUFFIX,proactivebackend-pa.googleapis.com
DOMAIN-SUFFIX,cloudcode-pa.googleapis.com
# Google AI Studio
DOMAIN,ai.google.dev
DOMAIN-SUFFIX,g.ai
DOMAIN-SUFFIX,aistudio.google.com
DOMAIN-SUFFIX,makersuite.google.com
DOMAIN,alkalicore-pa.clients6.google.com
DOMAIN-KEYWORD,alkalimakersuite-pa.clients6.google.com
DOMAIN-SUFFIX,generativeai.google
# NotebookLM
DOMAIN-SUFFIX,notebooklm.google
DOMAIN-SUFFIX,notebooklm.google.com
# Jules
DOMAIN,jules.google.com
# Android Studio
DOMAIN,aida.googleapis.com
# Antigravity
DOMAIN,antigravity.google
DOMAIN,antigravity-unleash.goog
DOMAIN,daily-cloudcode-pa.googleapis.com
# >> POE
DOMAIN-SUFFIX,poe.com
# >> Meta AI
DOMAIN-SUFFIX,meta.ai
# >> Cloudflare AI Gateway
DOMAIN,gateway.ai.cloudflare.com
# >> Dify.AI
DOMAIN-SUFFIX,dify.ai
# >> Jasper
DOMAIN-SUFFIX,clipdrop.co
DOMAIN-SUFFIX,jasper.ai
# >> OpenArt
DOMAIN-SUFFIX,openart.ai
# >> GitHub Copilot
# api.*.githubcopilot.com is not required, since the ip & asn information are coming from api.github.com
# see https://github.com/SukkaW/Surge/pull/46#discussion_r1849641627
DOMAIN,api.github.com
# >> Grok
DOMAIN-SUFFIX,grok.com
DOMAIN-SUFFIX,x.ai
# >> groq
DOMAIN-SUFFIX,groq.com
# >> JetBrains AI
DOMAIN,api.jetbrains.ai
# >> OpenRouter AI - Unified Relay
# see https://github.com/SukkaW/Surge/pull/86 for reason that only root domain get proxied
DOMAIN,openrouter.ai
# >> Cursor
# cursor.com is the marketing site, no geo blocking
# DOMAIN-SUFFIX,cursor.com
# Region is determined by the client IP of *.cursor.sh API requests
DOMAIN-SUFFIX,cursor.sh
# >> Windsurf (formerly Codeium)
# windsurf.com / codeium.com are marketing sites, no geo blocking
# Region is determined by the client IP of the API & inference requests
DOMAIN,server.codeium.com
DOMAIN,inference.codeium.com
DOMAIN,server.self-serve.windsurf.com