Skip to content

clientIp

function clientIp(request): string | undefined;

Defined in: src/clicks/geo.ts:164

Best-effort client IP: CF-Connecting-IP, True-Client-IP, X-Real-IP, then the first X-Forwarded-For entry. Only trust these behind a proxy that sets them; pass getIp to the redirect handler otherwise.

Parameter Type
request Request

string | undefined