From 9ca513bfdda53989e94123b4324a03aa5d4f4c13 Mon Sep 17 00:00:00 2001 From: Sam Lord Date: Thu, 22 Aug 2024 20:19:53 +0100 Subject: [PATCH] Added logging when honeypot field is hit ref KTLO-1 --- ghost/members-api/lib/controllers/RouterController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ghost/members-api/lib/controllers/RouterController.js b/ghost/members-api/lib/controllers/RouterController.js index 8482e1b084..486022263a 100644 --- a/ghost/members-api/lib/controllers/RouterController.js +++ b/ghost/members-api/lib/controllers/RouterController.js @@ -493,6 +493,8 @@ module.exports = class RouterController { } if (honeypot) { + logging.warn('Honeypot field filled, this is likely a bot'); + // Honeypot field is filled, this is a bot. // Pretend that the email was sent successfully. res.writeHead(201);