可测量的 DNS 查找或快速 TCP 握手
Direct connections show non-zero DNS lookup timing on cold fetches, fast TCP connects (150 ms or under), or omit cross-origin Timing-Allow-Origin timing headers.
BotRefund inspects cross-origin PerformanceResourceTiming entries for zero DNS resolution time paired with slow TCP connect handshakes exceeding 150 ms to spot remote proxy DNS resolution.
Client telemetry iterates through performance.getEntriesByType('resource') for cross-origin resource URLs whose servers expose timing details via Timing-Allow-Origin (domainLookupEnd above 0).
If any cross-origin resource reports zero DNS lookup duration (domainLookupEnd - domainLookupStart equals 0) alongside a TCP handshake exceeding 150 ms (connectEnd - connectStart above 150), the probe flags a potential proxy-tunnel DNS mismatch.
Sending traffic through a remote SOCKS5 or HTTP proxy that resolves DNS remotely causes the browser's timing API to record 0 ms DNS lookup time while still paying over 150 ms over the network to establish the proxied TCP connection.
Important Caveat: Authentic mobile users on congested cellular links or desktop visitors hitting a warm local or DoH DNS cache (0 ms DNS) over high-latency routes (over 150 ms TCP connect) satisfy the exact same timing pattern—so this check is cleared whenever genuine human interaction is observed.
Direct connections show non-zero DNS lookup timing on cold fetches, fast TCP connects (150 ms or under), or omit cross-origin Timing-Allow-Origin timing headers.
A cross-origin fetch showing 0 ms DNS time alongside an over-150 ms TCP connect delay points to remote proxy DNS resolution when genuine human interaction is absent.
Forensic significance: Supporting proxy-tunnel timing indicator with a warm-DNS and cellular-RTT caveat; analysts should always corroborate it with ASN origin, TCP MSS, and user interaction.