conn.client_ip.categories variable.
See the full list of available categories.
How to block AI crawlers and bots
Use IP Intelligence categories to deny traffic from AI services that crawl your site.How to allow traffic only from a specific cloud provider
Use an IP category in an expression to restrict access to IPs from a single provider, such as AWS or GitHub.com.aws, com.google.ipv4, com.microsoft.azure, and com.cloudflare.
See the full list of cloud provider categories.
How to block Tor exit nodes and anonymous proxies
proxy.anonymous blocks all anonymous proxies, including proxy.anonymous.tor.
To block only Tor exit nodes, use proxy.anonymous.tor instead.
How to block IPs on known threat blocklists
ngrok integrates with several third-party threat intelligence feeds. You can block IPs listed on these feeds using their category names.How to exempt a trusted service from rate limiting
You can use IP categories to exclude known-good services from rules like rate limiting. For example, to exempt Algolia’s crawler:Related
- IP Intelligence variable reference: Full list of variables and IP categories
- Restrict IPs action: Allow or deny by CIDR or IP Policy
- Block Unwanted Requests: More examples for blocking bots, countries, and bad actors