ProxyHeaderTrait
Reverse proxy / infrastructure HTTP header names (de-facto standard + CDN).
Mixed into HttpHeader.
Tags
Table of Contents
Constants
- CF_CONNECTING_IP : string = 'CF-Connecting-IP'
- `CF-Connecting-IP` — Original client IP, added by Cloudflare.
- FASTLY_CLIENT_IP : string = 'Fastly-Client-IP'
- `Fastly-Client-IP` — Original client IP, added by Fastly.
- TRUE_CLIENT_IP : string = 'True-Client-IP'
- `True-Client-IP` — Original client IP, used by Akamai / Cloudflare Enterprise.
- X_CLUSTER_CLIENT_IP : string = 'X-Cluster-Client-IP'
- `X-Cluster-Client-IP` — Original client IP, added by some load balancers.
- X_FORWARDED_FOR : string = 'X-Forwarded-For'
- `X-Forwarded-For` — Chain of client and proxy IP addresses (de-facto).
- X_FORWARDED_HOST : string = 'X-Forwarded-Host'
- `X-Forwarded-Host` — Original `Host` requested by the client (de-facto).
- X_FORWARDED_PROTO : string = 'X-Forwarded-Proto'
- `X-Forwarded-Proto` — Original protocol (`http` / `https`) used by the client (de-facto).
- X_REAL_IP : string = 'X-Real-IP'
- `X-Real-IP` — Original client IP, added by nginx and others (de-facto).
Constants
CF_CONNECTING_IP
`CF-Connecting-IP` — Original client IP, added by Cloudflare.
public
string
CF_CONNECTING_IP
= 'CF-Connecting-IP'
FASTLY_CLIENT_IP
`Fastly-Client-IP` — Original client IP, added by Fastly.
public
string
FASTLY_CLIENT_IP
= 'Fastly-Client-IP'
TRUE_CLIENT_IP
`True-Client-IP` — Original client IP, used by Akamai / Cloudflare Enterprise.
public
string
TRUE_CLIENT_IP
= 'True-Client-IP'
X_CLUSTER_CLIENT_IP
`X-Cluster-Client-IP` — Original client IP, added by some load balancers.
public
string
X_CLUSTER_CLIENT_IP
= 'X-Cluster-Client-IP'
X_FORWARDED_FOR
`X-Forwarded-For` — Chain of client and proxy IP addresses (de-facto).
public
string
X_FORWARDED_FOR
= 'X-Forwarded-For'
X_FORWARDED_HOST
`X-Forwarded-Host` — Original `Host` requested by the client (de-facto).
public
string
X_FORWARDED_HOST
= 'X-Forwarded-Host'
X_FORWARDED_PROTO
`X-Forwarded-Proto` — Original protocol (`http` / `https`) used by the client (de-facto).
public
string
X_FORWARDED_PROTO
= 'X-Forwarded-Proto'
X_REAL_IP
`X-Real-IP` — Original client IP, added by nginx and others (de-facto).
public
string
X_REAL_IP
= 'X-Real-IP'