nomagick commited on
Commit
54fa5fe
·
unverified ·
1 Parent(s): d0a9221
backend/functions/src/services/puppeteer.ts CHANGED
@@ -490,7 +490,7 @@ document.addEventListener('load', handlePageLoad);
490
  page.emit('abuse', { url, page, sn, reason: `DoS attack suspected: DOM tree too deep` });
491
  return;
492
  }
493
- if (s?.elemCount && s.elemCount > 15_000) {
494
  page.emit('abuse', { url, page, sn, reason: `DoS attack suspected: too many DOM elements` });
495
  return;
496
  }
 
490
  page.emit('abuse', { url, page, sn, reason: `DoS attack suspected: DOM tree too deep` });
491
  return;
492
  }
493
+ if (s?.elemCount && s.elemCount > 20_000) {
494
  page.emit('abuse', { url, page, sn, reason: `DoS attack suspected: too many DOM elements` });
495
  return;
496
  }