From 33c6813b87a9ff8d6a3ec1d23e76d68505d84924 Mon Sep 17 00:00:00 2001 From: alyssadev Date: Mon, 18 Sep 2023 15:43:06 +1000 Subject: [PATCH] added connecting ip to metrics for abuse detection --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 402c88d..4d9a960 100644 --- a/src/index.js +++ b/src/index.js @@ -32,7 +32,8 @@ function create_response(request, body, metadata) { request.cf.country, request.cf.asn, request.cf.timezone, - new Date().toISOString() + new Date().toISOString(), + request.headers.get("cf-connecting-ip") ] }) return new Response(body, metadata)