Browse Source

Merge pull request #996 from annando/blockbot2

Blockbot: Added bots and good agents
pull/997/head
Hypolite Petovan 2 years ago
committed by GitHub
parent
commit
af7e36bb3d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      blockbot/blockbot.php

5
blockbot/blockbot.php

@ -74,7 +74,8 @@ function blockbot_init_1(App $a) {
'Scrapy/', 'github-camo', 'MJ12bot/', 'DotBot/', 'Pinterestbot/', 'Jooblebot/',
'Cliqzbot/', 'YaK/', 'Mediatoolkitbot', 'Snacktory', 'FunWebProducts', 'oBot/',
'7Siters/', 'KOCMOHABT', 'Google-SearchByImage', 'FemtosearchBot/',
'HubSpot Crawler', 'DomainStatsBot/', 'Re-re Studio'];
'HubSpot Crawler', 'DomainStatsBot/', 'Re-re Studio', 'AwarioSmartBot/',
'SummalyBot/', 'DNSResearchBot/', 'PetalBot;'];
if (!DI::config()->get('blockbot', 'good_crawlers')) {
$agents = array_merge($agents, $good_agents);
@ -114,7 +115,7 @@ function blockbot_init_1(App $a) {
'Faraday v', 'okhttp', 'UniversalFeedParser', 'PixelFedBot', 'python-requests',
'WordPress/', 'http.rb/', 'Apache-HttpClient/', 'WordPress.com;', 'Pleroma',
'Dispatch/', 'Ruby', 'Java/', 'libwww-perl/', 'Mastodon/',
'lua-resty-http/'];
'lua-resty-http/', 'Tiny Tiny RSS/'];
if (DI::config()->get('blockbot', 'good_crawlers')) {
$agents = array_merge($agents, $good_agents);

Loading…
Cancel
Save