Skip to content

Commit 70e3897

Browse files
author
Bruno Cabral
committed
Ajuste da config
1 parent 928d0fa commit 70e3897

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/Middleware/BlockBots.php

+5
Original file line numberDiff line numberDiff 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

src/config/block-bots.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,22 @@
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

0 commit comments

Comments
 (0)