Skip to content

Commit

Permalink
Fix issue #18 - component TrustedBot strict mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrylinooo committed Apr 24, 2020
1 parent 11e4147 commit 4c5e8df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Shieldon/Firewall.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ protected function setComponents(): void
if ($trustedBotSetting['enable']) {
$componentTrustedBot = new TrustedBot();

if ($trustedBotSetting['strict_mode']) {
$componentTrustedBot->setStrict(true);
}

// This component will only allow popular search engline.
// Other bots will go into the checking process.
$this->shieldon->setComponent($componentTrustedBot);
Expand Down

0 comments on commit 4c5e8df

Please sign in to comment.