What HTTP headers can I check to identify if a request is proxied through Cloudflare?

Responsive Ad Header

Question

Grade: Education Subject: Support
What HTTP headers can I check to identify if a request is proxied through Cloudflare?
Asked by:
85 Viewed 85 Answers

Answer (85)

Best Answer
(317)
Several headers indicate a Cloudflare proxy. Common ones include `CF-RAY` (a unique request ID), `CF-IPCountry` (user's country), `CF-Visitor` (a unique visitor ID), and `CF-Connecting-IP` (the visitor's IP as seen by Cloudflare). The presence of these headers strongly suggests the request passed through Cloudflare.