Shieldon\Firewall\Component\TrustedBot
self
$robot = new \Shieldon\Firewall\Component\TrustedBot();
$shieldon->setComponent($robot);
Configuração padrão na lista branca.
nome | Rdns |
---|---|
.googlebot.com | |
.google.com | |
live | .live.com |
msn | .msn.com |
ask | .ask.com |
bing | .bing.com |
inktomisearch | .inktomisearch.com |
yahoo | .yahoo.com |
yahoo | .yahoo.net |
yandex | .yandex.com |
yandex | .yandex.ru |
w3 | .w3.org |
$bool
)$bool
Defina true para ativar o modo estrito, false para desativá-lo.void
Exemplo:
$robot->setStrict(true);
bool
Exemplo:
$result = $robot->isAllowed();
(obsoleto)
bool
Exemplo:
$result = $robot->isGoogle();
bool
Exemplo:
$result = $robot->isYahoo();
bool
Exemplo:
$result = $robot->isBing();
$userAgent
, $rdns
)string
$userAgent -
Parte da string do User-Agentstring
$rdns -
Hostname resolvido por IP.void
Exemplo:
$robot->addItem('google', '.googlebot.com');
Exemplo:
$robot->setStrict(true);