forked from friendica/friendica-addons
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
|
// 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/
|
||||||
|
|
Loading…
Reference in a new issue