Free online tools to generate, calculate,
convert, format, encode, and play.
 

IP Allowlist / Blocklist Generator

Paste IP addresses or CIDR ranges, pick a platform, and generate ready-to-use firewall rules. Everything runs in your browser.


IP Addresses

Platform & Options

Copied to clipboard

How It Works

Paste IPs or CIDR ranges, choose allow or block mode, select your target platform, and click Generate. The tool parses and validates each entry, then outputs platform-specific rules.

Supported platforms
  • Nginxallow/deny directives or a geo block that maps IPs to a variable for flexible use in if conditions.
  • ApacheRequire ip directives inside <RequireAll> / <RequireAny> blocks (Apache 2.4+ syntax).
  • iptables-A INPUT -s <ip> -j ACCEPT/DROP rules with optional protocol, port, and interface filters.
  • UFWufw allow/deny from <ip> commands with optional port and protocol.
  • nftables — named sets with ip saddr / ip6 saddr match rules inside a specified table and chain.
  • AWS Security Groups — outputs AWS CLI commands, Terraform aws_security_group_rule resources, or raw JSON IpPermissions.
  • Cloudflare — outputs a Cloudflare API-compatible JSON payload for IP Access Rules with the selected action.
Input format
  • One IP or CIDR per line, or comma / space separated.
  • Supports IPv4 (192.168.1.0/24) and IPv6 (2001:db8::/32).
  • Lines starting with # are treated as comments and preserved in the output.
  • Invalid entries are highlighted and skipped.
Always review generated rules before applying them to production systems. Test in a staging environment first.


Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with