mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-26 01:40:16 +00:00
And some more added "good" agent
This commit is contained in:
parent
8c385accd6
commit
77acddba49
1 changed files with 1 additions and 1 deletions
|
@ -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