ip_ban_set
Ban or unban IP addresses or CIDR blocks through AWS WAF, security groups, or NACL configurations. Accepts single or bulk IPs, applying to a named config or a site's WebACL.
Instructions
Ban or unban IP(s)/CIDR(s) via a named WAF/SecurityGroup/NACL config OR via a site's WebACL. Accepts a single ip_address (IP or CIDR), a bulk ip_addresses[] list, or a 'site' (WebACL ARN, ALB ARN, or instance id/name) that resolves the WebACL actually fronting the box. Returns an applied/failed split. Mutates live traffic rules — confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip_address | No | An IPv4/IPv6 address or CIDR to ban/unban. | |
| cidr | No | Alias for ip_address accepting a CIDR block. | |
| ip_addresses | No | Bulk list of IPs/CIDRs to ban/unban. | |
| config_name | No | Name of the IP-ban config (see ip_ban_list_configs). | |
| site | No | WebACL ARN, ALB ARN, or instance id/name — bans into the WebACL fronting it (alternative to config_name). | |
| region | No | AWS region override for the site path. | |
| action | No | 'ban' to block, 'unban' to remove a block. | ban |