Skip to content

Commit

Permalink
Detect Morning Score bot (#7364)
Browse files Browse the repository at this point in the history
* feat(bot) detect Morning Score bot

* chore: remove line for bots.yml file

* feat(bot) added producer: Morningscore
feat(bot) added test for new Morningscore UA
  • Loading branch information
sanchezzzhak committed Mar 3, 2023
1 parent 1663008 commit 7d291c4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Tests/fixtures/bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5530,3 +5530,21 @@
producer:
name: IAB Technology Laboratory, Inc.
url: https://iabtechlab.com/
-
user_agent: Mozilla/5.0 (Morningscore/1.0)
bot:
name: Morning Score
category: Crawler
url: https://morningscore.io/
producer:
name: Morningscore
url: https://morningscore.io/
-
user_agent: Mozilla/5.0 (Morningscore Bot/1.0)
bot:
name: Morning Score
category: Crawler
url: https://morningscore.io/
producer:
name: Morningscore
url: https://morningscore.io/
8 changes: 8 additions & 0 deletions regexes/bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3277,6 +3277,14 @@
name: 'IAB Technology Laboratory, Inc.'
url: 'https://iabtechlab.com/'

- regex: 'Morningscore'
name: 'Morning Score'
category: 'Crawler'
url: 'https://morningscore.io/'
producer:
name: 'Morningscore'
url: 'https://morningscore.io/'

# Generic detections
- regex: '[a-z0-9\-_]*((?<!cu|power[ _]|m[ _])bot(?![ _]TAB|[ _]?5[0-9]|[ _]Senior|[ _]Junior)|crawler|crawl|checker|archiver|transcoder|spider)([^a-z]|$)'
name: 'Generic Bot'

0 comments on commit 7d291c4

Please sign in to comment.