Property TrustedProxyNetworks
TrustedProxyNetworks
Gets the addresses and networks whose connections are trusted like connections from Cloudflare's IP ranges: their forwarded client address and
scheme are applied and their Cloudflare headers are kept. Each entry is an IP address (for example 127.0.0.1) or a network in CIDR notation
(for example 10.0.0.0/8). Empty by default.
Declaration
public IList<string> TrustedProxyNetworks { get; }
Property Value
| Type | Description |
|---|---|
| IList<string> |
Remarks
Any client that connects from one of these addresses can send requests with a client address and Cloudflare headers of its choosing.
IPv4-mapped IPv6 addresses and networks, such as ::ffff:10.0.0.0/104, are treated as the IPv4 addresses and networks they map, such as
10.0.0.0/8. The application fails to start if an entry is not a valid address or network.