TrustedBot

Shieldon\Component\TrustedBot

  • return self
$robot = new \Shieldon\Component\TrustedBot();
$shieldon->setComponent($robot);

Default setting in whitelist.

name Rdns
google .googlebot.com
google .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

setStrict

  • param boolean $bool Set true to enble strict mode, false to disable it overwise.
  • return void
$robot->setStrict(true);

isAllowed

  • return bool
$result = $robot->isAllowed();

isDenied

(deprecated)

isGoogle

  • return bool
$result = $robot->isGoogle();

isYahoo

  • return bool
$result = $robot->isYahoo();

isBing

  • return bool
$result = $robot->isBing();

addItem

  • param string $userAgent Part of user-agent string
  • param string $rdns IP resolved hostname.
  • return void
$robot->addItem('google', '.googlebot.com');

Strict Mode

  • IP resolved hostname and IP address must match.
$robot->setStrict(true);

results matching ""

    No results matching ""