Enum PolicyConfig.ClientAddressHeader

  • All Implemented Interfaces:
    BmcEnum, Serializable, Comparable<PolicyConfig.ClientAddressHeader>
    Enclosing class:
    PolicyConfig

    public static enum PolicyConfig.ClientAddressHeader
    extends Enum<PolicyConfig.ClientAddressHeader>
    implements BmcEnum
    Specifies an HTTP header name which is treated as the connecting client’s IP address.

    Applicable only if isBehindCdn is enabled.

    The edge node reads this header and its value and sets the client IP address as specified. It does not create the header if the header is not present in the request. If the header is not present, the connecting IP address will be used as the client's true IP address. It uses the last IP address in the header's value as the true IP address.

    Example: X-Client-Ip: 11.1.1.1, 13.3.3.3

    In the case of multiple headers with the same name, only the first header will be used. It is assumed that CDN sets the correct client IP address to prevent spoofing.

    - **X_FORWARDED_FOR:** Corresponds to X-Forwarded-For header name.

    - **X_CLIENT_IP:** Corresponds to X-Client-Ip header name.

    - **X_REAL_IP:** Corresponds to X-Real-Ip header name.

    - **CLIENT_IP:** Corresponds to Client-Ip header name.

    - **TRUE_CLIENT_IP:** Corresponds to True-Client-Ip header name.