---
updatedAt: 2026-11-02T19:07:33.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/llms.txt
---

# client_​ip_​version

<table><thead><th class="page-label-version">Version: <code>v2026-09-30</code></th><th class="page-label-includes">Includes use: Yes</th></thead><table>

**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.

```json HCL
data "akamai_property_rules_builder" "client_ip_version" {
  rules_v2026_09_30 {
    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"
      }
    }
  }
}
```
```json JSON
"criterion": [
  {
    "name": "clientIpVersion",
    "options": {
      "useXForwardedFor": false,
      "value": "IPV4"
    }
  }
]
```

## Options

<table>
  <thead>
    <th>Option</th>
    <th>Description</th>
  </thead>
  <tbody>
    <tr>
      <td><code>value</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata ps-blue">Enum</span>
        </div>
        <div>The IP version of the client request. Value is one of:
          <ul>
            <li class="ps-li"><code>IPV4</code>. Matches the IPv4 protocol.</li>
            <li class="ps-li"><code>IPV6</code>. Matches the IPv6 protocol.</li>
          </ul>
        </div>
      </td>
    </tr>
    <tr>
      <td><code>use_x_forwarded_for</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata ps-blue">Boolean</span>
        </div>
        <div>When connecting via a proxy server as determined by the <code>X-Forwarded-For</code> header, enabling this option matches the connecting client's IP address rather than the original end client specified in the header.
        </div>
      </td>
    </tr>
  </tbody>
</table>

# Sibling pages

\- [advanced\_​im\_​match](https://techdocs.akamai.com/terraform/docs/advanced-im-match.md)
\- [bucket](https://techdocs.akamai.com/terraform/docs/bucket.md)
\- [cacheability](https://techdocs.akamai.com/terraform/docs/cacheability.md)
\- [china\_​cdn\_​region](https://techdocs.akamai.com/terraform/docs/china-cdn-region.md)
\- [client\_​certificate](https://techdocs.akamai.com/terraform/docs/client-certificate.md)
\- [client\_​ip](https://techdocs.akamai.com/terraform/docs/client-ip.md)
\- [cloudlets\_​origin](https://techdocs.akamai.com/terraform/docs/cloudlets-origin.md)
\- [content\_​delivery\_​network](https://techdocs.akamai.com/terraform/docs/content-delivery-network.md)
\- [content\_​type](https://techdocs.akamai.com/terraform/docs/content-type.md)
\- [debug\_​mode](https://techdocs.akamai.com/terraform/docs/debug-mode.md)
\- [device\_​characteristic](https://techdocs.akamai.com/terraform/docs/device-characteristic.md)
\- [edge\_​workers\_​failure](https://techdocs.akamai.com/terraform/docs/edge-workers-failure.md)
\- [file\_​extension](https://techdocs.akamai.com/terraform/docs/file-extension.md)
\- [filename](https://techdocs.akamai.com/terraform/docs/filename.md)
\- [hostname](https://techdocs.akamai.com/terraform/docs/hostname.md)
\- [match\_​advanced](https://techdocs.akamai.com/terraform/docs/match-advanced.md)
\- [match\_​cp\_​code](https://techdocs.akamai.com/terraform/docs/match-cp-code.md)
\- [match\_​response\_​code](https://techdocs.akamai.com/terraform/docs/match-response-code.md)
\- [match\_​variable](https://techdocs.akamai.com/terraform/docs/match-variable.md)
\- [metadata\_​stage](https://techdocs.akamai.com/terraform/docs/metadata-stage.md)
\- [origin\_​timeout](https://techdocs.akamai.com/terraform/docs/origin-timeout.md)
\- [path](https://techdocs.akamai.com/terraform/docs/path.md)
\- [query\_​string\_​parameter](https://techdocs.akamai.com/terraform/docs/query-string-parameter.md)
\- [random](https://techdocs.akamai.com/terraform/docs/random.md)
\- [recovery\_​config](https://techdocs.akamai.com/terraform/docs/recovery-config.md)
\- [regular\_​expression](https://techdocs.akamai.com/terraform/docs/regular-expression.md)
\- [request\_​cookie](https://techdocs.akamai.com/terraform/docs/request-cookie.md)
\- [request\_​header](https://techdocs.akamai.com/terraform/docs/request-header.md)
\- [request\_​method](https://techdocs.akamai.com/terraform/docs/request-method.md)
\- [request\_​protocol](https://techdocs.akamai.com/terraform/docs/request-protocol.md)
\- [request\_​type](https://techdocs.akamai.com/terraform/docs/request-type.md)
\- [response\_​header](https://techdocs.akamai.com/terraform/docs/response-header.md)
\- [server\_​location](https://techdocs.akamai.com/terraform/docs/server-location.md)
\- [time](https://techdocs.akamai.com/terraform/docs/time.md)
\- [token\_​authorization](https://techdocs.akamai.com/terraform/docs/token-authorization.md)
\- [user\_​agent](https://techdocs.akamai.com/terraform/docs/user-agent.md)
\- [user\_​location](https://techdocs.akamai.com/terraform/docs/user-location.md)
\- [user\_​network](https://techdocs.akamai.com/terraform/docs/user-network.md)
\- [variable\_​error](https://techdocs.akamai.com/terraform/docs/variable-error.md)