Source Events ↗

probe.client_blocked

Probe protection blocked a client IP.

When
After the unknown route threshold is reached.
Payload
JSON: { request_id, client_ip, unknown_hits, block_secs }.
Cancelable
No

The request that crosses the threshold still receives its normal response.

Use cases

  • Security alerts
  • Abuse tracking

Example

Registration and handler

Register

hook!(host, PluginEvent::ProbeClientBlocked, on_probe_client_blocked);

Handler

extern "C" fn on_event(ctx: *const EventContext) -> HookResult {
    let ctx = unsafe { &*ctx };
    let payload = unsafe { std::slice::from_raw_parts(ctx.payload_ptr, ctx.payload_len) };
    let _json = std::str::from_utf8(payload).unwrap_or_default();
    HookResult::r#continue()
}

← All lifecycle events