# Diagnostic channel events ## `aikido.zen.request.blocked` ```ts import { channel } from "node:diagnostics_channel"; import type { DiagnosticsChannel } from "@aikidosec/firewall"; channel("aikido.zen.request.blocked").subscribe((message) => { const event = message as DiagnosticsChannel.RequestBlockedEvent; console.log(event); }); ``` Keep the callback fast and handle errors inside it. ### IP list block ```json { "reason": "ip_list", "mode": "block", "ip": "203.0.113.42", "list": { "type": "geoip", "id": "BE", "name": "Belgium" } } ``` Other `list` examples: - Tor: `{ "type": "tor", "id": "exit_nodes" }` - CrowdSec: `{ "type": "known_threat_actors", "id": "public_internet_scanners" }` - Playbooks: `{ "type": "playbook_blocklist", "id": "playbook" }` ### Allow Traffic by Countries ```json { "reason": "ip_list", "mode": "allow", "ip": "203.0.113.42" } ``` ### Bot list block ```json { "reason": "bot_list", "ip": "203.0.113.42", "userAgent": "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" } ``` ### User ID block ```json { "reason": "user_id", "ip": "203.0.113.42", "userId": "user-123" } ```