From 54fa5feb7f4ffc7059e3e1b606b8298dcb70d980 Mon Sep 17 00:00:00 2001 From: "yanlong.wang" Date: Thu, 1 Aug 2024 19:49:40 +0800 Subject: [PATCH] fix --- backend/functions/src/services/puppeteer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/functions/src/services/puppeteer.ts b/backend/functions/src/services/puppeteer.ts index d30f353..ed35860 100644 --- a/backend/functions/src/services/puppeteer.ts +++ b/backend/functions/src/services/puppeteer.ts @@ -490,7 +490,7 @@ document.addEventListener('load', handlePageLoad); page.emit('abuse', { url, page, sn, reason: `DoS attack suspected: DOM tree too deep` }); return; } - if (s?.elemCount && s.elemCount > 15_000) { + if (s?.elemCount && s.elemCount > 20_000) { page.emit('abuse', { url, page, sn, reason: `DoS attack suspected: too many DOM elements` }); return; }