Skip to content

Commit

Permalink
Improves detection for generic bots
Browse files Browse the repository at this point in the history
ref #7702
  • Loading branch information
liviuconcioiu committed May 30, 2024
1 parent 4c5ffd8 commit 5dea98d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Tests/fixtures/smartphone-39.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4155,3 +4155,21 @@
model: G3 Max
os_family: Android
browser_family: Chrome
-
user_agent: UCWEB/2.0 (Java; U; MIDP-2.0; Nokia203/20.37) U2/1.0.0 UCMini/10.9.8.1006 (SpeedMode; Proxy; Android 4.4.4; AS-5433_Secret ) U2/1.0.0 Mobile
os:
name: Android
version: 4.4.4
platform: ""
client:
type: browser
name: UC Browser Mini
version: 10.9.8.1006
engine: ""
engine_version: ""
device:
type: smartphone
brand: Nokia
model: Asha 203
os_family: Android
browser_family: Unknown
2 changes: 1 addition & 1 deletion regexes/bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4517,5 +4517,5 @@
name: 'Generic Bot'

# Generic detections
- regex: '[a-z0-9_-]*(?:(?<!cu|power[ _]|m[ _])bot(?![ _]TAB|[ _]?5[0-9]|[ _]Senior|[ _]Junior)|analyzer|appengine|archiver?|checker|collector|crawl|crawler|(?<!node-|uclient-|Mikrotik/\d\.[x\d] |electron-)fetch(?:er)?|indexer|inspector|monitor|(?<!Microsoft |banshee-)project(?!or)|(?<!Google Wap |Blue )proxy|research|resolver|robots|(?<!Cam)scanner|scraper|script|searcher|(?<!-)security|spider(?! 8)|study|transcoder|uptime|user[ _]?agent|validator)(?:[^a-z]|$)'
- regex: '[a-z0-9_-]*(?:(?<!cu|power[ _]|m[ _])bot(?![ _]TAB|[ _]?5[0-9]|[ _]Senior|[ _]Junior)|analyzer|appengine|archiver?|checker|collector|crawl|crawler|(?<!node-|uclient-|Mikrotik/\d\.[x\d] |electron-)fetch(?:er)?|indexer|inspector|monitor|(?<!Microsoft |banshee-)project(?!or)|(?<!Google Wap |Blue |SpeedMode; )proxy|research|resolver|robots|(?<!Cam)scanner|scraper|script|searcher|(?<!-)security|spider(?! 8)|study|transcoder|uptime|user[ _]?agent|validator)(?:[^a-z]|$)'
name: 'Generic Bot'

0 comments on commit 5dea98d

Please sign in to comment.