@@ -50,19 +50,19 @@ discard block |
||
50 | 50 | protected $deniedList = [ |
51 | 51 | |
52 | 52 | // Backlink crawlers |
53 | - 'Ahrefs', // http://ahrefs.com/robot/ |
|
54 | - 'roger', // rogerbot (SEOMOZ) |
|
55 | - 'moz.com', // SEOMOZ crawlers |
|
56 | - 'MJ12bot', // Majestic crawlers |
|
57 | - 'findlinks', // http://wortschatz.uni-leipzig.de/findlinks |
|
58 | - 'Semrush', // http://www.semrush.com/bot.html |
|
53 | + 'Ahrefs', // http://ahrefs.com/robot/ |
|
54 | + 'roger', // rogerbot (SEOMOZ) |
|
55 | + 'moz.com', // SEOMOZ crawlers |
|
56 | + 'MJ12bot', // Majestic crawlers |
|
57 | + 'findlinks', // http://wortschatz.uni-leipzig.de/findlinks |
|
58 | + 'Semrush', // http://www.semrush.com/bot.html |
|
59 | 59 | |
60 | 60 | // Web information crawlers |
61 | - 'domain', // Domain name information crawlers. |
|
62 | - 'copyright', // Copyright information crawlers. |
|
61 | + 'domain', // Domain name information crawlers. |
|
62 | + 'copyright', // Copyright information crawlers. |
|
63 | 63 | |
64 | 64 | // Others |
65 | - 'archive', // Wayback machine |
|
65 | + 'archive', // Wayback machine |
|
66 | 66 | ]; |
67 | 67 | |
68 | 68 | /** |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | if (!empty($this->deniedList)) { |
99 | - if (preg_match('/(' . implode('|', $this->deniedList). ')/i', $userAgent)) { |
|
99 | + if (preg_match('/(' . implode('|', $this->deniedList) . ')/i', $userAgent)) { |
|
100 | 100 | return (new Response)->withStatus(self::HTTP_STATUS_CODE); |
101 | 101 | } |
102 | 102 | } |