And some more added "good" agent

This commit is contained in:
Michael Vogel 2019-04-27 15:50:25 +02:00
parent 8c385accd6
commit 77acddba49

View file

@ -36,7 +36,7 @@ function blockbot_init_1(App $a) {
// List of strings of reported false positives // List of strings of reported false positives
$agents = ['Mastodon', 'hackney', 'Faraday', 'okhttp', 'UniversalFeedParser', 'PixelFedBot', 'python-requests', $agents = ['Mastodon', 'hackney', 'Faraday', 'okhttp', 'UniversalFeedParser', 'PixelFedBot', 'python-requests',
'WordPress']; 'WordPress', 'http.rb'];
foreach ($agents as $agent) { foreach ($agents as $agent) {
if (stristr($_SERVER['HTTP_USER_AGENT'], $agent)) { if (stristr($_SERVER['HTTP_USER_AGENT'], $agent)) {
// The agents had been reported to https://github.com/JayBizzle/Crawler-Detect/issues/ // The agents had been reported to https://github.com/JayBizzle/Crawler-Detect/issues/