Custom deny

akamai_appsec_custom_deny

Modifies a custom deny action. Custom denies enable you to craft your own error message or redirect pages for use when HTTP requests are denied.

resource "akamai_appsec_custom_deny" "my_custom_deny" {
  config_id   = 12345
  custom_deny = file("${path.module}/custom_deny.json")
}

Arguments

ArgumentRequiredDescription
config_id✔️A security configuration ID.
custom_deny✔️Path to a JSON file containing properties and property values for the custom deny.

Attributes

Returned is the custom_deny_id for the new custom deny action.