mirror of
https://github.com/manualdousuario/marreta.git
synced 2025-09-01 18:20:22 +00:00
novos sites bloquedos e melhoria no validador
This commit is contained in:
parent
2955158c63
commit
01b903da88
2 changed files with 11 additions and 3 deletions
|
@ -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'
|
||||
];
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue