From 6c0cef40008d332f35c5d13c9784d2027681a1c3 Mon Sep 17 00:00:00 2001 From: "NullDev (Shadow)" Date: Tue, 14 Nov 2023 14:27:32 +0100 Subject: [PATCH] better headless check --- web/src/challange/fingerprinting.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/challange/fingerprinting.js b/web/src/challange/fingerprinting.js index 544d232..d8b015e 100644 --- a/web/src/challange/fingerprinting.js +++ b/web/src/challange/fingerprinting.js @@ -31,8 +31,9 @@ class Fingerprinting { */ isNotHeadless(){ const isHeadless = !!navigator.webdriver // @ts-ignore - || !!window.chrome - || !!navigator.languages + || !!window.chrome // @ts-ignore + || !!navigator.callPhantom || !!navigator.__phantom + || !window.screenX || !window.screenY || !window.outerHeight || !window.outerWidth || navigator.userAgent.toLowerCase().includes("headless"); return !isHeadless; }