Last update:2026-07-02 17:32:12
Client IP Header controls which HTTP request header CDNetworks uses when passing the original client IP address to your origin server.
Use this feature when your origin server needs the viewer’s real client IP address for business logic, access control, security checks, or origin-side log analysis.
| Option | Behavior | When to Use |
|---|---|---|
Cdn-Src-Ip |
CDNetworks adds the client IP to the Cdn-Src-Ip request header. This is the default option. |
Use this when your origin can read the CDNetworks-specific header directly. |
X-Forwarded-For |
CDNetworks sends the client IP in the X-Forwarded-For request header. The IP value comes from the client IP detected by CDNetworks. |
Use this when your origin, application, or log parser already relies on X-Forwarded-For. |
Preserve original X-Forwarded-For |
If the client request already includes X-Forwarded-For, CDNetworks passes the original header and value to the origin. |
Use this only when you intentionally want to preserve the incoming X-Forwarded-For value. |