Spaces:
Build error
Build error
fix
Browse files
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 >
|
| 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 |
}
|