cloudflare_ip_access_create
Create IP access rules to block, challenge, whitelist, or apply JS challenges to specific IPs, CIDR ranges, ASNs, or countries for Cloudflare zones.
Instructions
Create an IP access rule for a zone. Targets can be a specific IP, CIDR range, ASN, or country code.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone_id | Yes | Zone ID (32-char hex) or zone name (e.g., 'example.com') | |
| mode | Yes | Action mode for the rule | |
| target | Yes | Type of target to match | |
| value | Yes | Value to match: IP address (192.0.2.1), CIDR (192.0.2.0/24), ASN number (AS12345), or 2-letter country code (US) | |
| notes | No | Optional notes describing why the rule was created |