AI Corner · · Approx. 6 min read

Banned by ChatGPT? Optimize Your Clash Rules and Fix 'Access Denied' for Good

1. The Root Cause: IP Drifting

How IP Drifting Happens

1 You start a ChatGPT request → Routed via US Node A (IP: 1.2.3.4)
2 Speed test triggered → Switched to faster US Node B (IP: 5.6.7.8)
3 OpenAI detects two IPs in one session → Risk alert triggered
4 Account restricted or banned ❌

2. How OpenAI Detects IPs

IP Quality

OpenAI maintains a blacklist of datacenter IPs. Shared IPs are easily flagged. You need a "Native Residential IP" or a clean dedicated IP.

IP Consistency

Frequent IP changes within a session are abnormal. Even with clean IPs, drifting enough will trigger a ban.

Geo-Restrictions

OpenAI is unavailable in regions like Mainland China, Hong Kong, Russia, etc. Use nodes in the US, Japan, or Singapore.

Device Fingerprinting

Inconsistencies between browser fingerprint and IP (e.g., US IP but Chinese browser) increase risk.

3. Core Solution Strategy

Use Fallback Strategy Groups (Critical)

Create a separate fallback group for OpenAI with 2-3 fixed US nodes. It only switches if the main node fails, preventing IP drifting.

Accurately Match All OpenAI Domains

ChatGPT uses more than just chat.openai.com. It includes APIs, CDNs, and auth domains that must all point to your AI node.

Choose Native IP Nodes

Pick nodes labeled "Native", "Residential", or "ChatGPT Unlock". Avoid standard datacenter IPs.

4. Full Configuration Code

Add the following code via the "Override/Merge" feature in Clash Verge Rev. No need to modify your original subscription file:

① Add AI Strategy Group

proxy-groups:
  # AI 专线:固定美国节点,仅故障时切换
  - name: 🤖 AI 专线
    type: fallback
    url: https://chat.openai.com/favicon.ico
    interval: 60
    proxies:
      - 美国节点01   # 替换为你实际的美国节点名称
      - 美国节点02   # 备用节点

② Add OpenAI / Claude Routing Rules

rules:
  # ── OpenAI / ChatGPT 全部域名 ────────────────────
  - DOMAIN-SUFFIX,openai.com,🤖 AI 专线
  - DOMAIN-SUFFIX,oaistatic.com,🤖 AI 专线
  - DOMAIN-SUFFIX,oaiusercontent.com,🤖 AI 专线
  - DOMAIN-SUFFIX,chatgpt.com,🤖 AI 专线
  - DOMAIN-KEYWORD,openai,🤖 AI 专线

  # ── Anthropic / Claude ───────────────────────────
  - DOMAIN-SUFFIX,anthropic.com,🤖 AI 专线
  - DOMAIN-SUFFIX,claude.ai,🤖 AI 专线

  # ── Google AI (Gemini) ───────────────────────────
  - DOMAIN-SUFFIX,googleapis.com,🤖 AI 专线
  - DOMAIN-KEYWORD,gemini,🤖 AI 专线

  # ── 其余规则(国内直连 / 兜底代理)─────────────────
  - GEOIP,PRIVATE,DIRECT
  - GEOIP,CN,DIRECT
  - MATCH,🔰 选择节点

Note: Replace US-Node-01 with the actual node names from your subscription (visible in the Proxies panel).

5. Applying Overrides in Clash Verge Rev

  1. 1

    Open Overrides

    Click on the "Override / Merge" icon on the left sidebar and click "New".

  2. 2

    Paste Configuration

    Paste the proxy-groups and rules snippets from Step 4 into the editor and save.

  3. 3

    Enable & Restart Kernel

    Toggle the Override switch on and click "Restart Kernel". You will see the new "🤖 AI Traffic" group in the Proxies panel.

  4. 4

    Verification

    Visit chat.openai.com. It should load normally. Check if the active node in your AI group is from the US.

6. Advanced: Choosing "Native IP" Nodes

Not all US nodes work. Here is how to find high-quality ones:

Use IP Check Tools

  • ✅ ISP shows "Comcast", "AT&T", etc. → Native Residential IP
  • ⚠️ ISP shows "Cloudflare", "AWS", "Vultr" → Datacenter IP, high risk

Select dedicated ChatGPT nodes

Many providers offer nodes labeled "ChatGPT/OpenAI Unlock" specifically to bypass bans. Use these in your AI group.

Reduce API concurrency

If you are developing with the API, avoid high-frequency requests that might flag your IP as abnormal. Add request intervals.

Related Reading