AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
The configuration for inspecting IP addresses in an HTTP header that you specify,
instead of using the IP address that's reported by the web request origin. Commonly,
this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to
the web request at all.
This configuration is used only for IPSetReferenceStatement. For GeoMatchStatement and RateBasedStatement, use ForwardedIPConfig instead.
Namespace: Amazon.WAFV2.Model
Assembly: AWSSDK.WAFV2.dll
Version: 3.x.y.z
public class IPSetForwardedIPConfig
The IPSetForwardedIPConfig type exposes the following members
Name | Description | |
---|---|---|
![]() |
IPSetForwardedIPConfig() |
Name | Type | Description | |
---|---|---|---|
![]() |
FallbackBehavior | Amazon.WAFV2.FallbackBehavior |
Gets and sets the property FallbackBehavior. The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all. You can specify the following fallback behaviors:
|
![]() |
HeaderName | System.String |
Gets and sets the property HeaderName.
The name of the HTTP header to use for the IP address. For example, to use the X-Forwarded-For
(XFF) header, set this to If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all. |
![]() |
Position | Amazon.WAFV2.ForwardedIPPosition |
Gets and sets the property Position.
The position in the header to search for the IP address. The header can contain IP
addresses of the original client and also of proxies. For example, the header value
could be The options for this setting are the following:
|
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5