From e7ebe2a923464441c6680b3f5cde8a43b380586f Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Tue, 17 Mar 2026 10:20:52 +0100 Subject: [PATCH] refactor: remove client-side 0x0 screen check, handled server-side IsSuspiciousEvent already scores 0x0 screens as +5 (bot threshold). Keeping the check client-side hides bot traffic from analysis and is trivially bypassable. --- public/script.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/public/script.js b/public/script.js index e864977..68c70b3 100644 --- a/public/script.js +++ b/public/script.js @@ -284,11 +284,6 @@ height: window.innerHeight || window.screen.height, }; - // * Skip bots with no screen dimensions (0x0) - if (screenSize.width === 0 && screenSize.height === 0) { - return; - } - const payload = { domain: domain, path: path,