Multiple smaller fixes

Added Support for Privacy Browser (Android),
Split Meta bots for better control,
Added Internet Archive to default whitelist,
Reactivated hashed cookies.
This commit is contained in:
Sascha Leib
2025-11-07 12:29:08 +01:00
parent 0cfc0c5d33
commit 871c97bf14
9 changed files with 31 additions and 19 deletions

View File

@@ -314,8 +314,8 @@ class action_plugin_botmon extends DokuWiki_Action_Plugin {
$today = substr((new DateTime())->format('c'), 0, 10);
$raw = $this->getConf('captchaSeed') /*. '|' . $_SERVER['SERVER_NAME'] . '|' . $_SERVER['REMOTE_ADDR'] . '|' . $today */;
$expected = $raw; //hash('sha256', $raw);
$raw = $this->getConf('captchaSeed') . ';' . $_SERVER['SERVER_NAME'] . ';' . $_SERVER['REMOTE_ADDR'] . ';' . $today;
$expected = hash('sha256', $raw);
// for debugging: write captcha data to the log:
$this->writeCaptchaLog($_SERVER['REMOTE_ADDR'], $cookieVal, $_SERVER['SERVER_NAME'], $expected);