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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
request |
Request |
Returns
Section titled “Returns”string | undefined