capabilities.work

Block IP Access Rule

A 3-step recipe with Cloudflare. We can help you get access.

Recipe · 3 steps

Block IP Access Rule

Create an IP access rule, list the rules, then delete it.

  1. Create an IP access rule with the supplied mode and target.
  2. List the zone's IP access rules to confirm the new rule is present.
  3. Delete the IP access rule now that it has been confirmed.
What you'll need to have ready
  • zoneId: The unique identifier of the zone.
  • mode: The action to apply (block, challenge, whitelist, or js_challenge).
  • target: The kind of target (ip, ip_range, asn, or country).
  • value: The target value (e.g. an IP address, CIDR range, ASN, or country code).
  • notes: A human-readable note explaining the rule.
For your developer

Arazzo workflow cloudflare:block-ip-access-rule, 3 operations: ip-access-rules-for-a-zone-create-an-ip-access-rule → ip-access-rules-for-a-zone-list-ip-access-rules → ip-access-rules-for-a-zone-delete-an-ip-access-rule. Specs on APIs.io.