File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ public function __construct()
3131 */
3232 public function handle ($ request , Closure $ next , $ dailyLimit )
3333 {
34+ $ enabled = $ this ->config ['fake_mode ' ];
35+ if (!$ enabled ){
36+ return $ next ($ request );
37+ }
38+
3439 try {
3540 $ blocked = $ this ->blocked ($ request , $ dailyLimit );
3641
Original file line number Diff line number Diff line change 3434 *
3535 */
3636 'allowed_crawlers ' => [
37-
38- 'firefox ' => 'firefox ' ,
3937 'ahrefs ' => 'ahrefs ' ,
4038 'alexa ' => 'alexa ' ,
4139 'ask ' => 'ask ' ,
4240 'baidu ' => 'baidu ' ,
4341 'bing ' => 'msn.com ' ,
4442 'duckduck ' => '* ' ,
4543 'exabot ' => 'exabot ' ,
46- 'facebook ' => 'baidu ' ,
44+ 'facebook ' => 'facebook ' ,
4745 'google ' => 'google ' ,
48- 'msn ' => 'google ' ,
46+ 'msn ' => 'msn ' ,
4947 'msnbot ' => 'msn.com ' ,
5048 'sogou ' => 'sogou ' ,
5149 'soso ' => 'soso ' ,
5250 'twitter ' => 'twitter ' ,
5351 'yahoo ' => 'yahoo ' ,
54- 'yandex ' => 'baidu ' ,
52+ 'yandex ' => 'yandex ' ,
5553 ],
5654];
5755
You can’t perform that action at this time.
0 commit comments