---
updatedAt: 2026-08-20T14:35:31.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/llms.txt
---

# URL evasion defense

akamai_appsec_advanced_settings_url_evasion_defense

Create or update your security configuration's URL evasion defense enablement and other settings.

```json Declaration
resource "akamai_appsec_advanced_settings_url_evasion_defense" "my_url_evasion_settings" {
  config_id = 12345
  status = "enabled"
  bypass_lists = [
    "123456_BYPASSLIST"
  ]
  rules = [
    {
      rule_id = 12345
      action = "deny"
      condition_operator = "AND"
      conditions = [
        {
          type = "hostMatch"
          hosts = [
            "host.name"
          ]
          positive_match = true
        }
      ]
    }
  ]
}
```

## Arguments

Provide a security configuration ID and an enablement status to manage your URL evasion defense settings.

| Argument       | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| -------------- | :------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `config_id`    |    ✔️    | Your security configuration's ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `status`       |    ✔️    | Your security configuration's URL evasion defense enablement state. Value is either `enabled` or `disabled`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `bypass_lists` |          | A list of clients that are exempt from URL evasion mitigation rules.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `rules`        |          | The settings for your URL evasion rules. Contains:<ul><li><code>action</code>. Required. The action taken on trigger of your URL evasion rule. Value is one of:<ul><li class="inner-list-behavior"><code>alert</code></li><li class="inner-list-behavior"><code>deny</code></li><li class="inner-list-behavior"><code>none</code></li></ul></li><li><code>condition\_operator</code>. How the rule evaluates conditions. Value is one of:<ul><li><code>OR</code> to match any condition.</li><li><code>AND</code> to match on all conditions.</li></ul></li><li><code>conditions</code>. A list of the rule's match conditions.<ul><li><code>type</code>. Required. The condition on which to match.</li><li><code>client\_lists</code>. The client lists that trigger the <code>clientListMatch</code> condition type.</li><li><code>extensions</code>. The file extensions that trigger the <code>extensionMatch</code> condition type.</li><li><code>filenames</code>. The file names that trigger the <code>filenameMatch</code> condition type.</li><li><code>header</code>. The request headers that trigger the <code>requestHeaderMatch</code> condition type.</li><li><code>hosts</code>. The hostnames that trigger the <code>hostMatch</code> condition type.</li><li><code>ips</code>. The IPs that trigger the <code>ipMatch</code> condition type.</li><li><code>methods</code>. The HTTP request methods that trigger the <code>requestMethodMatch</code> condition type. Value is one of:<div class="Flex-two"><div class="Flex-item-two"><ul><li class="inner-list-behavior"><code>GET</code></li><li class="inner-list-behavior"><code>POST</code></li><li class="inner-list-behavior"><code>HEAD</code></li><li class="inner-list-behavior"><code>PUT</code></li><li class="inner-list-behavior"><code>DELETE</code></li></ul></div><div class="Flex-item-two"><ul><li class="inner-list-behavior"><code>OPTIONS</code></li><li class="inner-list-behavior"><code>TRACE</code></li><li class="inner-list-behavior"><code>CONNECT</code></li><li class="inner-list-behavior"><code>PATCH</code></li></ul></div></div></li><li><code>name</code>. The query parameter name that triggers the <code>uriQueryMatch</code> condition type.</li><li><code>name\_case\_sensitive</code>. When set to <code>true</code>, the value for <name> is case sensitive.</li><li><code>paths</code>. The paths that trigger the <code>pathMatch</code> condition type.</li><li><code>positive\_match</code>. When set to <code>true</code>, the condition triggers on a match, and if set to <code>false</code>, the condition triggers on the lack of a match.</li><li><code>use\_headers</code>. When set to <code>true</code>, the <code>ipMatch</code> and <code>clientListMatch</code> condition types include the <code>X-Forwarded-For</code>.</li><li><code>value</code>. The query parameter or request header value that trigger the <code>uriQueryMatch</code> or <code>requestHeaderMatch</code> condition type.</li><li><code>value\_case\_sensitive</code>. When set to <code>true</code>, the value for <code>value</code> is case sensitive.</li><li><code>value\_wildcard</code>. When set to <code>true</code>, the value for <code>value</code> is a wildcard.</li></ul></li><li><code>description</code>. A human-readable statement about your URL evasion rule.</li><li><code>name</code>. The name of your URL evasion rule.</li><li><code>rule\_id</code>. Required. Your rule's ID.</li></ul> |

## Attributes

Returned to is a list of your `rules` names and descriptions.

| Attribute     | Description                                               |
| ------------- | --------------------------------------------------------- |
| `description` | The human-readable statement about your URL evasion rule. |
| `name`        | The name of your URL evasion rule.                        |

# Sibling pages

* [AAP selected hostnames](https://techdocs.akamai.com/terraform/docs/as-rc-aap-selected-hostnames.md)
* [AI rules](https://techdocs.akamai.com/terraform/docs/as-rc-waf-ai-rules.md)
* [Activations](https://techdocs.akamai.com/terraform/docs/as-rc-activations.md)
* [Advanced logging](https://techdocs.akamai.com/terraform/docs/as-rc-advanced-logging.md)
* [API constraints protection](https://techdocs.akamai.com/terraform/docs/as-rc-api-constraints-protection.md)
* [API request constraints](https://techdocs.akamai.com/terraform/docs/as-rc-api-request-constraints.md)
* [ASE penalty box settings](https://techdocs.akamai.com/terraform/docs/as-rc-ase-penalty-box-settings.md)
* [Attack group](https://techdocs.akamai.com/terraform/docs/as-rc-attack-group.md)
* [Attack payload logging](https://techdocs.akamai.com/terraform/docs/as-rc-attack-payload-logging.md)
* [Bypass network lists](https://techdocs.akamai.com/terraform/docs/as-rc-bypass-network-lists.md)
* [Configuration](https://techdocs.akamai.com/terraform/docs/as-rc-configuration.md)
* [Configuration rename](https://techdocs.akamai.com/terraform/docs/as-rc-configuration-rename.md)
* [Custom deny](https://techdocs.akamai.com/terraform/docs/as-rc-custom-deny.md)
* [Custom rule](https://techdocs.akamai.com/terraform/docs/as-rc-custom-rule.md)
* [Custom rule action](https://techdocs.akamai.com/terraform/docs/as-rc-custom-rule-action.md)
* [Eval](https://techdocs.akamai.com/terraform/docs/as-rc-eval.md)
* [Eval group](https://techdocs.akamai.com/terraform/docs/as-rc-eval-group.md)
* [Eval penalty box](https://techdocs.akamai.com/terraform/docs/as-rc-eval-penalty-box.md)
* [Eval penalty box conditions](https://techdocs.akamai.com/terraform/docs/as-rc-eval-penalty-box-conditions.md)
* [Eval rule](https://techdocs.akamai.com/terraform/docs/as-rc-eval-rule.md)
* [Evasive path match](https://techdocs.akamai.com/terraform/docs/as-rc-evasive-path-match.md)
* [IP Geo](https://techdocs.akamai.com/terraform/docs/as-rc-ip-geo.md)
* [IP Geo protection](https://techdocs.akamai.com/terraform/docs/as-rc-ip-geo-protection.md)
* [JA4 fingerprint](https://techdocs.akamai.com/terraform/docs/as-rc-ja4-fingerprint.md)
* [Match target sequence](https://techdocs.akamai.com/terraform/docs/as-rc-match-target-sequence.md)
* [Malware policy](https://techdocs.akamai.com/terraform/docs/as-rc-malware-policy.md)
* [Malware policy action](https://techdocs.akamai.com/terraform/docs/as-rc-malware-policy-action.md)
* [Malware policy actions](https://techdocs.akamai.com/terraform/docs/as-rc-malware-policy-actions.md)
* [Malware protection](https://techdocs.akamai.com/terraform/docs/as-rc-malware-protection.md)
* [Match target](https://techdocs.akamai.com/terraform/docs/as-rc-match-target.md)
* [Penalty box](https://techdocs.akamai.com/terraform/docs/as-rc-penalty-box.md)
* [Penalty box conditions](https://techdocs.akamai.com/terraform/docs/as-rc-penalty-box-conditions.md)
* [PII learning](https://techdocs.akamai.com/terraform/docs/as-rc-pii-learning.md)
* [Policy rename](https://techdocs.akamai.com/terraform/docs/as-rc-policy-rename.md)
* [Pragma header](https://techdocs.akamai.com/terraform/docs/as-rc-pragma-header.md)
* [Prefetch](https://techdocs.akamai.com/terraform/docs/as-rc-prefetch.md)
* [Rapid rules](https://techdocs.akamai.com/terraform/docs/as-rc-rapid-rules.md)
* [Rate policy](https://techdocs.akamai.com/terraform/docs/as-rc-rate-policy.md)
* [Rate policy action](https://techdocs.akamai.com/terraform/docs/as-rc-rate-policy-action.md)
* [Rate protection](https://techdocs.akamai.com/terraform/docs/as-rc-rate-protection.md)
* [Reputation profile](https://techdocs.akamai.com/terraform/docs/as-rc-reputation-profile.md)
* [Reputation profile action](https://techdocs.akamai.com/terraform/docs/as-rc-reputation-profile-action.md)
* [Reputation profile analysis](https://techdocs.akamai.com/terraform/docs/as-rc-reputation-analysis.md)
* [Reputation protection](https://techdocs.akamai.com/terraform/docs/as-rc-reputation-protection.md)
* [Request body settings](https://techdocs.akamai.com/terraform/docs/request-body-settings.md)
* [Rule](https://techdocs.akamai.com/terraform/docs/as-rc-rule.md)
* [Rule upgrade](https://techdocs.akamai.com/terraform/docs/as-rc-rule-upgrade.md)
* [Security policy](https://techdocs.akamai.com/terraform/docs/as-rc-security-policy.md)
* [Security policy default protections](https://techdocs.akamai.com/terraform/docs/as-rc-security-policy-default-protections.md)
* [Security policy protections](https://techdocs.akamai.com/terraform/docs/as-rc-security-policy-protections.md)
* [SIEM settings](https://techdocs.akamai.com/terraform/docs/as-rc-siem-settings.md)
* [Slow POST](https://techdocs.akamai.com/terraform/docs/as-rc-slow-post.md)
* [Slow POST protection](https://techdocs.akamai.com/terraform/docs/as-rc-slow-post-protection.md)
* [Threat intel](https://techdocs.akamai.com/terraform/docs/as-rc-threat-intel.md)
* [Version notes](https://techdocs.akamai.com/terraform/docs/as-rc-version-notes.md)
* [WAF mode](https://techdocs.akamai.com/terraform/docs/as-rc-waf-mode.md)
* [WAF protections](https://techdocs.akamai.com/terraform/docs/as-rc-waf-protections.md)
* [WAF rule set](https://techdocs.akamai.com/terraform/docs/as-rc-waf-rule-set.md)
* [URL protection action](https://techdocs.akamai.com/terraform/docs/as-rc-url-protection-action.md)
* [URL protection policy](https://techdocs.akamai.com/terraform/docs/as-rc-url-protection-policy.md)