novos sites bloquedos e melhoria no validador

This commit is contained in:
Renan Bernordi 2024-12-05 19:08:16 -03:00
parent 2955158c63
commit 01b903da88
2 changed files with 11 additions and 3 deletions

View file

@ -103,5 +103,13 @@ return [
'archive.today',
'12ft.io',
'jusbrasil.com.br',
'glassdoor.com.br'
'glassdoor.com.br',
'gov.br',
'medium.com',
'stackoverflow.com',
'hoteis.com',
'amazon.com',
'amazon.com.br',
'msn.com',
'archive.ph'
];

View file

@ -110,8 +110,8 @@ class URLAnalyzer
return $this->cache->get($cleanUrl);
}
$parsedUrl = parse_url($cleanUrl);
$domain = $parsedUrl['host'];
$domain = parse_url($cleanUrl, PHP_URL_HOST);
$domain = preg_replace('/^www\./', '', $domain);
// Verificação de domínios bloqueados
foreach (BLOCKED_DOMAINS as $blockedDomain) {