# Surge module: block Codex telemetry endpoints while preserving core model requests

> Source: <https://gist.github.com/peakpot1/e9ba4b1a49046a5f7ece988837c07c60>
> Published: 2026-07-21 11:34:10+00:00

| #!name=Codex Telemetry Block | |
| #!desc=Blocks the dedicated Codex analytics, desktop telemetry, Statsig event upload, and OTLP metrics endpoints observed in the 2026-07-21 HAR. Core Codex model requests remain allowed. | |
| #!system=mac | |
| [MITM] | |
| hostname = %APPEND% chatgpt.com, chat.openai.com | |
| [Rule] | |
| # Codex behavioral analytics | |
| URL-REGEX,^https://chatgpt\.com/backend-api/codex/analytics-events/events(?:\?.*)?$,REJECT | |
| # Codex Desktop structured logs | |
| URL-REGEX,^https://chat\.openai\.com/ces/v1/telemetry/intake(?:\?.*)?$,REJECT | |
| # Statsig / CES event and exposure upload | |
| URL-REGEX,^https://chatgpt\.com/ces/v1/rgstr(?:\?.*)?$,REJECT | |
| # OpenTelemetry metrics; this host was used only for /otlp/v1/metrics in the HAR | |
| DOMAIN,ab.chatgpt.com,REJECT,pre-matching |
