Skip to content

Commit 29f845d

Browse files
committed
Bot user agents module update (CIDRAM/CIDRAM#651).
1 parent 9053d77 commit 29f845d

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

modules/module_botua.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Bot user agents module (last modified: 2025.11.13).
11+
* This file: Bot user agents module (last modified: 2025.12.02).
1212
*
1313
* False positive risk (an approximate, rough estimate only): « [ ]Low [x]Medium [ ]High »
1414
*/
@@ -348,6 +348,16 @@
348348
$CIDRAM['Tracking options override'] = 'extended';
349349
} // 2023.11.17 mod 2025.11.06
350350

351+
/**
352+
* @link https://github.com/CIDRAM/CIDRAM/issues/651
353+
*/
354+
$Trigger(preg_match(
355+
'~(?=.*chrome\/\d)(?=.*safari\/\d)(?=.*edg\/\d).*gls\/[\d.]+$|' .
356+
'(?=.*chrome\/\d)(?=.*safari\/\d).*(?:unique|trailer|agency|viewer)\/[\d.]+$|' .
357+
'(?=.*gecko\/\d)(?=.*firefox\/\d).*(?:openwave|config)\/[\d.]+$~',
358+
$UANoSpace
359+
), 'Scraper UA'); // 2025.12.02
360+
351361
$Trigger(preg_match('~ct‑git‑scanner/~i', $CIDRAM['BlockInfo']['UA']), 'Unauthorised Git scanner'); // 2025.07.05
352362
$Trigger(preg_match('~4\.066686748~', $UANoSpace), 'Hack UA (pretending to be Netscape)'); // 2025.11.13
353363

modules/modules.dat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ module_bgpview.php:
184184
module_botua.php:
185185
Name: "Bot user agents module"
186186
False Positive Risk: "Medium"
187-
Version: "2025.316.0"
187+
Version: "2025.335.0"
188188
Dependencies:
189189
PHP: "^5.4|^7|^8"
190190
CIDRAM Core: "^1.13.1|^2.0.1"
@@ -196,7 +196,7 @@ module_botua.php:
196196
To:
197197
- "module_botua.php"
198198
Checksum:
199-
- "479f77971a55d0b08eddbfcf2209884c54caefc26a4f0da4eadf7817d646477b:27760"
199+
- "ff41c84a2b08cf21306124f534c4be501782e8179c647fdf29dad5531cb8e79c:28152"
200200
Used with: "modules"
201201
Reannotate: "modules.dat"
202202
module_cookies.php:

0 commit comments

Comments
 (0)