Blocking IPs
Last updated: 1 minute read.
IP Blocklist (Middleware)
-
enable_ip_blacklisting
: Enables IPs blocklist1 . If set totrue
, 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": ["12.12.12.12", "12.12.12.13", "12.12.12.14"]
...
For more details on CIDR notation, see this Wikipedia entry.
Tyk Operator
Please consult the Tyk Operator supporting documentation for an example of how to configure an IP block list with Tyk Operator.
-
Blocklist - explicitly blocking access to identified entities. Previously known as blacklist. ↩︎