https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
758a36d
)
And some more false positives and known bots
author
Michael Vogel
<icarus@dabo.de>
Sat, 27 Apr 2019 18:55:58 +0000
(20:55 +0200)
committer
Michael Vogel
<icarus@dabo.de>
Sat, 27 Apr 2019 18:55:58 +0000
(20:55 +0200)
blockbot/blockbot.php
patch
|
blob
|
history
diff --git
a/blockbot/blockbot.php
b/blockbot/blockbot.php
index
dd84df3
..
c4a6fda
100644
(file)
--- a/
blockbot/blockbot.php
+++ b/
blockbot/blockbot.php
@@
-47,7
+47,7
@@
function blockbot_init_1(App $a) {
// List of false positives' strings of known "good" agents we haven't reported (yet)
$agents = ['fediverse.network crawler', 'Active_Pods_CheckBot_3.0', 'Social-Relay/',
// List of false positives' strings of known "good" agents we haven't reported (yet)
$agents = ['fediverse.network crawler', 'Active_Pods_CheckBot_3.0', 'Social-Relay/',
- 'curl', 'zgrab', 'Go-http-client', 'curb'];
+ 'curl', 'zgrab', 'Go-http-client', 'curb'
, 'github.com', 'reqwest'
];
foreach ($agents as $agent) {
if (stristr($_SERVER['HTTP_USER_AGENT'], $agent)) {
foreach ($agents as $agent) {
if (stristr($_SERVER['HTTP_USER_AGENT'], $agent)) {
@@
-59,7
+59,8
@@
function blockbot_init_1(App $a) {
// List of known crawlers. They are added here to avoid having them logged at the end of the function.
// This helps to detect false positives.
$agents = ['SEMrushBot', 's~feedly-nikon3', 'Qwantify/Bleriot/', 'ltx71', 'Sogou web spider/',
// List of known crawlers. They are added here to avoid having them logged at the end of the function.
// This helps to detect false positives.
$agents = ['SEMrushBot', 's~feedly-nikon3', 'Qwantify/Bleriot/', 'ltx71', 'Sogou web spider/',
- 'Diffbot/'];
+ 'Diffbot/', 'Twitterbot/', 'YisouSpider/', 'evc-batch/', 'LivelapBot/', 'TrendsmapResolver/',
+ 'PaperLiBot/', 'Nuzzel', 'um-LN/', 'Google Favicon'];
foreach ($agents as $agent) {
if (stristr($_SERVER['HTTP_USER_AGENT'], $agent)) {
foreach ($agents as $agent) {
if (stristr($_SERVER['HTTP_USER_AGENT'], $agent)) {