Shieldon\Firewall\Component\TrustedBot
self
$robot = new \Shieldon\Firewall\Component\TrustedBot();
$shieldon->setComponent($robot);
Default setting in whitelist.
name | 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
Set true to enble strict mode, false to disable it overwise.void
Example:
$robot->setStrict(true);
bool
Example:
$result = $robot->isAllowed();
(deprecated)
bool
Example:
$result = $robot->isGoogle();
bool
Example:
$result = $robot->isYahoo();
bool
Example:
$result = $robot->isBing();
$userAgent
, $rdns
)string
$userAgent -
Part of user-agent stringstring
$rdns -
IP resolved hostname.void
Example:
$robot->addItem('google', '.googlebot.com');
Example:
$robot->setStrict(true);