se o content retornar com menos de 5kb, ignorar

This commit is contained in:
Renan Bernordi 2025-01-07 10:42:03 -03:00
parent 4baafec194
commit 5983fffb80

View file

@ -521,6 +521,11 @@ class URLAnalyzer
*/
private function processContent($content, $host, $url)
{
// Check content size / Verifica o tamanho do conteúdo
if (strlen($content) < 5120) { // 5KB = 5120 bytes
throw new Exception(Language::getMessage('CONTENT_ERROR')['message']);
}
$dom = new DOMDocument();
$dom->preserveWhiteSpace = true;
libxml_use_internal_errors(true);