mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-18 06:15:00 +00:00
feat(policy/expressions): add userAgent.isBrowserLike method
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -5,12 +5,4 @@
|
||||
all:
|
||||
- '"X-Http-Version" in headers'
|
||||
- headers["X-Http-Version"] == "HTTP/1.1"
|
||||
- >-
|
||||
( userAgent.contains("Mozilla")
|
||||
|| userAgent.contains("Opera")
|
||||
|| userAgent.contains("Safari")
|
||||
|| userAgent.contains("Edge")
|
||||
|| userAgent.contains("Gecko")
|
||||
|| userAgent.contains("Windows")
|
||||
|| userAgent.contains("Linux")
|
||||
)
|
||||
- userAgent.isBrowserLike()
|
||||
Reference in New Issue
Block a user