Firewall
firewall
Access Rules
firewall.access_rules
Methods
Fetches IP Access rules of an account or zone. These rules apply to all the zones in the account or zone. You can filter the results using several optional parameters.
Fetches the details of an IP Access rule defined.
Creates a new IP Access rule for an account or zone. The rule will apply to all zones in the account or zone.
Note: To create an IP Access rule that applies to a single zone, refer to the IP Access rules for a zone endpoints.
Updates an IP Access rule defined.
Note: This operation will affect all zones in the account or zone.
Deletes an existing IP Access rule defined.
Note: This operation will affect all zones in the account or zone.
Domain types
Lockdowns
firewall.lockdowns
Methods
Fetches Zone Lockdown rules. You can filter the results using several optional parameters.
Fetches the details of a Zone Lockdown rule.
Creates a new Zone Lockdown rule.
Updates an existing Zone Lockdown rule.
Deletes an existing Zone Lockdown rule.
Domain types
A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of ip or ip_range configurations.
Rules
firewall.rules
Methods
Deprecated
The Firewall Rules API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
Fetches firewall rules in a zone. You can filter the results using several optional parameters.
Deprecated
The Firewall Rules API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
Fetches the details of a firewall rule.
Deprecated
The Firewall Rules API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
Create one or more firewall rules.
Deprecated
The Firewall Rules API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
Updates an existing firewall rule.
Deprecated
The Firewall Rules API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
Updates the priority of an existing firewall rule.
Deprecated
The Firewall Rules API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
Deletes an existing firewall rule.
Deprecated
The Firewall Rules API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
Updates one or more existing firewall rules.
Deprecated
The Firewall Rules API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
Updates the priority of existing firewall rules.
Deprecated
The Firewall Rules API is deprecated in favour of using the Ruleset Engine. See https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#firewall-rules-api-and-filters-api for full details.
Deletes existing firewall rules.
Domain types
A list of products to bypass for a request when using the bypass action.
UA Rules
firewall.ua_rules
Methods
Fetches User Agent Blocking rules in a zone. You can filter the results using several optional parameters.
Fetches the details of a User Agent Blocking rule.
Creates a new User Agent Blocking rule in a zone.
Updates an existing User Agent Blocking rule.
Deletes an existing User Agent Blocking rule.
WAF
firewall.waf
Methods
Fetches the URI-based WAF overrides in a zone.
Note: Applies only to the previous version of WAF managed rules.
Fetches the details of a URI-based WAF override.
Note: Applies only to the previous version of WAF managed rules.
Creates a URI-based WAF override for a zone.
Note: Applies only to the previous version of WAF managed rules.
Updates an existing URI-based WAF override.
Note: Applies only to the previous version of WAF managed rules.
Deletes an existing URI-based WAF override.
Note: Applies only to the previous version of WAF managed rules.
Domain types
Specifies that, when a WAF rule matches, its configured action will be replaced by the action configured in this object.
An object that allows you to override the action of specific WAF rules. Each key of this object must be the ID of a WAF rule, and each value must be a valid WAF action. Unless you are disabling a rule, ensure that you also enable the rule group that this WAF rule belongs to. When creating a new URI-based WAF override, you must provide a groups object or a rules object.
Methods
Fetches WAF packages for a zone.
Note: Applies only to the previous version of WAF managed rules.
Fetches the details of a WAF package.
Note: Applies only to the previous version of WAF managed rules.
Methods
Fetches the WAF rule groups in a WAF package.
Note: Applies only to the previous version of WAF managed rules.
Fetches the details of a WAF rule group.
Note: Applies only to the previous version of WAF managed rules.
Updates a WAF rule group. You can update the state (mode parameter) of a rule group.
Note: Applies only to the previous version of WAF managed rules.
Domain types
Methods
Fetches WAF rules in a WAF package.
Note: Applies only to the previous version of WAF managed rules.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Firewall Services Write Firewall Services Read
Defines an identifier of a schema.
Defines the unique identifier of a WAF package.
Defines the public description of the WAF rule.
Defines the direction used to sort returned rules.
Defines the unique identifier of the rule group.
Defines the search requirements. When set to all, all the search requirements must match. When set to any, only one of the search requirements has to match.
Defines the action/mode a rule has been overridden to perform.
Defines the field used to sort returned rules.
Defines the page number of paginated results.
Defines the number of rules per page.
Defines the order in which the individual WAF rule is executed within its rule group.
Defines whether the API call was successful.
Fetches the details of a WAF rule in a WAF package.
Note: Applies only to the previous version of WAF managed rules.
Updates a WAF rule. You can only update the mode/action of the rule.
Note: Applies only to the previous version of WAF managed rules.
Domain types
Defines the mode anomaly. When set to on, the current WAF rule will be used when evaluating the request. Applies to anomaly detection WAF rules.
Defines the rule group to which the current WAF rule belongs.