Login 24/7 Support Community tyk.io

Blocking IPs

Blocking IPs (Middleware)

  • enable_ip_blacklisting: If set to true, requests coming from the explicit list of IP addresses (blacklisted_ips) are not allowed through.

  • blacklisted_ips: A list of strings that defines the IP addresses (in CIDR notation) that are blocked access via Tyk. This list is explicit and wildcards are currently not supported. e.g.:

"enable_ip_blacklisting": true,
"blacklisted_ips": ["", "", ""]

For more details on CIDR notation, see this Wikipedia entry.


  1. Blocklist - explicitly blocking access to some identified entities. Also commonly known as a blacklist. ↩︎