feat(policy/expressions): add userAgent.isBrowserLike method

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-04-28 16:15:05 -04:00
parent b43df36f7d
commit 3fb8fa2009
4 changed files with 39 additions and 12 deletions

View File

@@ -44,6 +44,10 @@ bots:
# algorithm: slow # intentionally waste CPU cycles and time
# Challenge clients with "Mozilla" or "Opera" in their user-agent string
- import: (data)/common/legacy-challenge-everything.yaml
#- import: (data)/common/legacy-challenge-everything.yaml
- name: reject-browsers
action: DENY
expression: userAgent.isBrowser()
dnsbl: false