mirror of
https://github.com/manualdousuario/marreta.git
synced 2025-09-04 11:41:12 +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',
|
'archive.today',
|
||||||
'12ft.io',
|
'12ft.io',
|
||||||
'jusbrasil.com.br',
|
'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);
|
return $this->cache->get($cleanUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
$parsedUrl = parse_url($cleanUrl);
|
$domain = parse_url($cleanUrl, PHP_URL_HOST);
|
||||||
$domain = $parsedUrl['host'];
|
$domain = preg_replace('/^www\./', '', $domain);
|
||||||
|
|
||||||
// Verificação de domínios bloqueados
|
// Verificação de domínios bloqueados
|
||||||
foreach (BLOCKED_DOMAINS as $blockedDomain) {
|
foreach (BLOCKED_DOMAINS as $blockedDomain) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue