mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-25 01:26:40 +00:00
fix(data/clients/git): more strictly match the git client
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
+16
-10
@@ -2,13 +2,19 @@
|
|||||||
action: ALLOW
|
action: ALLOW
|
||||||
expression:
|
expression:
|
||||||
all:
|
all:
|
||||||
- >
|
- >
|
||||||
(
|
(
|
||||||
userAgent.startsWith("git/") ||
|
userAgent.startsWith("git/") ||
|
||||||
userAgent.contains("libgit") ||
|
userAgent.contains("libgit") ||
|
||||||
userAgent.startsWith("go-git") ||
|
userAgent.startsWith("go-git") ||
|
||||||
userAgent.startsWith("JGit/") ||
|
userAgent.startsWith("JGit/") ||
|
||||||
userAgent.startsWith("JGit-")
|
userAgent.startsWith("JGit-")
|
||||||
)
|
)
|
||||||
- '"Git-Protocol" in headers'
|
- '"Accept" in headers'
|
||||||
- headers["Git-Protocol"] == "version=2"
|
- headers["Accept"] == "*/*"
|
||||||
|
- '"Cache-Control" in headers'
|
||||||
|
- headers["Cache-Control"] == "no-cache"
|
||||||
|
- '"Pragma" in headers'
|
||||||
|
- headers["Pragma"] == "no-cache"
|
||||||
|
- '"Accept-Encoding" in headers'
|
||||||
|
- headers["Accept-Encoding"].contains("gzip")
|
||||||
|
|||||||
Reference in New Issue
Block a user