---
updatedAt: 2026-03-01T17:58:06.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/v9.3/llms.txt
---

# Content protection rule

akamai_botman_content_protection_rule

Creates, updates, and deletes a content protection rule. To delete a rule, run `terraform destroy`.

```json Declaration
resource "akamai_botman_content_protection_rule" "my_content_protection_rule" {
    config_id               = 12345
    security_policy_id      = "abc1_12345"
    content_protection_rule = file("${path.module}/content-protection-rule.json")
}
```

## Arguments

Pass the required IDs and your content protection rule's configuration to create or update a rule.

[block:parameters]
{
  "data": {
    "h-0": "Argument",
    "h-1": "Required",
    "h-2": "Description",
    "0-0": "`config_id`",
    "0-1": "✔️",
    "0-2": "The security configuration's ID.",
    "1-0": "`security_policy_id`",
    "1-1": "✔️",
    "1-2": "The security policy's ID.",
    "2-0": "`content_protection_rule`",
    "2-1": "✔️",
    "2-2": "A JSON-formatted array of rule conditions. Provide a file path to the conditions or inline as a json encoded array.  \n  \nUse the [Bot Manager API](https://techdocs.akamai.com/bot-manager/reference/api)  or [Bot Manager in Akamai Control Center](https://techdocs.akamai.com/bot-manager/docs/welcome)  to create a configuration. Then, export your configuration or use the [corresponding data source](https://techdocs.akamai.com/terraform/v9.3/docs/cpr-ds-rule)  to get the JSON file."
  },
  "cols": 3,
  "rows": 3,
  "align": [
    null,
    "center",
    null
  ]
}
[/block]

## Attributes

There is no default standard output. For detailed information about the content protection rule, see your state file.

# Sibling pages

* [Bot detection action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-bot-detection-action.md)
* [Bot category action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-bot-category-action.md)
* [Bot category exception](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-bot-category-exception.md)
* [Bot management settings](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-bot-management-settings.md)
* [Bot sequence](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-custom-bot-category-item-sequence.md)
* [Challenge action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-challenge-action.md)
* [Challenge interception rules](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-challenge-interception-rules.md)
* [Challenge injection rules](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-challenge-injection-rules.md)
* [Conditional action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-conditional-action.md)
* [Content protection JavaScript injection rule](https://techdocs.akamai.com/terraform/v9.3/docs/cpr-rc-javascript-injection-rule.md)
* [Content protection rule sequence](https://techdocs.akamai.com/terraform/v9.3/docs/cpr-rc-rule-sequence.md)
* [Client-side security](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-client-side-security.md)
* [Custom-bot category](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-custom-bot-category.md)
* [Custom-bot category action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-custom-bot-category-action.md)
* [Custom-bot category sequence](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-custom-bot-category-sequence.md)
* [Custom client](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-custom-client.md)
* [Custom client sequence](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-custom-client-sequence.md)
* [Custom-defined bot](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-custom-defined-bot.md)
* [Custom deny action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-custom-deny-action.md)
* [JavaScript injection](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-javascript-injection.md)
* [Recategorized Akamai-defined bot](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-recategorized-akamai-defined-bot.md)
* [Serve alternate action](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-serve-alternate-action.md)
* [Transactional endpoint](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-transactional-endpoint.md)
* [Transactional endpoint protection](https://techdocs.akamai.com/terraform/v9.3/docs/bmgr-rc-transactional-endpoint-protection.md)