mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-17 03:25:55 +08:00
fix
This commit is contained in:
parent
d0a922144d
commit
54fa5feb7f
@ -490,7 +490,7 @@ document.addEventListener('load', handlePageLoad);
|
|||||||
page.emit('abuse', { url, page, sn, reason: `DoS attack suspected: DOM tree too deep` });
|
page.emit('abuse', { url, page, sn, reason: `DoS attack suspected: DOM tree too deep` });
|
||||||
return;
|
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` });
|
page.emit('abuse', { url, page, sn, reason: `DoS attack suspected: too many DOM elements` });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user