mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-19 06:44:58 +00:00
feat(policy/expressions): add userAgent.isBrowserLike method
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user