forked from friendica/friendica-addons
And some more added "good" agent
This commit is contained in:
parent
8c385accd6
commit
77acddba49
|
@ -36,7 +36,7 @@ function blockbot_init_1(App $a) {
|
|||
|
||||
// List of strings of reported false positives
|
||||
$agents = ['Mastodon', 'hackney', 'Faraday', 'okhttp', 'UniversalFeedParser', 'PixelFedBot', 'python-requests',
|
||||
'WordPress'];
|
||||
'WordPress', 'http.rb'];
|
||||
foreach ($agents as $agent) {
|
||||
if (stristr($_SERVER['HTTP_USER_AGENT'], $agent)) {
|
||||
// The agents had been reported to https://github.com/JayBizzle/Crawler-Detect/issues/
|
||||
|
|
Loading…
Reference in a new issue