Ready to merge

This commit is contained in:
Sascha Leib
2025-12-06 19:04:57 +01:00
parent 2651a7d446
commit 259b3f4acf
2 changed files with 7 additions and 3 deletions

View File

@@ -504,7 +504,11 @@ BotMon.live = {
prereg = model._makePageView(dat, type); prereg = model._makePageView(dat, type);
visitor._pageViews.push(prereg); visitor._pageViews.push(prereg);
} }
// update the page view:
prereg._tickCount += 1; prereg._tickCount += 1;
if (dat.captcha) {
prereg._captcha += dat.captcha;
}
}, },
// updating visit data from the ticker log: // updating visit data from the ticker log:
@@ -569,7 +573,7 @@ BotMon.live = {
_viewCount: 0, _viewCount: 0,
_loadCount: 0, _loadCount: 0,
_tickCount: 0, _tickCount: 0,
_captcha: data.captcha _captcha: data.captcha ? data.captcha : 'X'
}; };
}, },

View File

@@ -1,7 +1,7 @@
base botmon base botmon
author Sascha Leib author Sascha Leib
email ad@hominem.com email ad@hominem.com
date 2025-11-07 date 2025-12-06
name Bot Monitoring name Bot Monitoring
desc A tool for monitoring and analysing bot traffic to your wiki (under development) desc A tool for monitoring and blocking bot traffic to your wiki (under development)
url https://www.dokuwiki.org/plugin:botmon url https://www.dokuwiki.org/plugin:botmon