client_​ip_​version

Version: v2025-02-18Includes use: Yes

Criterion name: Client IP Version

Matches the version of the IP protocol used by the requesting client.

Default criterion

These samples reflect the criterion's default settings. You can use these as is in your configurations or make adjustments based on the criterion's available options.

data "akamai_property_rules_builder" "client_ip_version" {
  rules_v2025_02_18 {
    name     = "Client IP Version"
    comments = "Matches the version of the IP protocol used by the requesting client."
    criterion {
      client_ip_version {
        use_xforwarded_for = false
        value = "IPV4"
      }
    }
  }
}
"criterion": [
  {
    "name": "clientIpVersion",
    "options": {
      "useXForwardedFor": false,
      "value": "IPV4"
    }
  }
]

Options

Option Description
value
The IP version of the client request. Value is one of:
  • IPV4. Matches the IPv4 protocol.
  • IPV6. Matches the IPv6 protocol.
use_x_forwarded_for
When connecting via a proxy server as determined by the X-Forwarded-For header, enabling this option matches the connecting client's IP address rather than the original end client specified in the header.