Block IP Access Rule
A 3-step recipe with Cloudflare. We can help you get access.
Recipe · 3 steps
Block IP Access Rule
with Cloudflare
Create an IP access rule, list the rules, then delete it.
- Create an IP access rule with the supplied mode and target.
- List the zone's IP access rules to confirm the new rule is present.
- 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.