DEV-1989 ALL status codes under /pgadmin4 (including 401, 499, 404, etc.)
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
[Definition]
|
[Definition]
|
||||||
# Match either x_forwarded_for (preferred) or remote_addr
|
|
||||||
|
# ✅ Match any 4xx status (including 401, 499) for all paths
|
||||||
failregex = ^.*"x_forwarded_for":"<HOST>".*"status":4\d\d.*$
|
failregex = ^.*"x_forwarded_for":"<HOST>".*"status":4\d\d.*$
|
||||||
^.*"remote_addr":"<HOST>".*"status":4\d\d.*$
|
^.*"remote_addr":"<HOST>".*"status":4\d\d.*$
|
||||||
|
|
||||||
ignoreregex = ^.*"request_uri":"\/(?:stub_status|health\/system|health\/worker|pgadmin4(?:\/|$)|\.well-known\/acme-challenge\/|.*\.(?:css|js|png|jpg|jpeg|gif|svg|ico|webp|woff2?))".*$
|
# ❌ Ignore:
|
||||||
|
# - ALL status codes under /pgadmin4 (including 401, 499, 404, etc.)
|
||||||
|
# - Static files and known safe URIs
|
||||||
|
ignoreregex = ^.*"request_uri":"\/pgadmin4(?:\/[^"]*)?".*$
|
||||||
|
^.*"request_uri":"\/(?:stub_status|health\/system|health\/worker|\.well-known\/acme-challenge\/[^"]*|[^"]*\.(?:css|js|png|jpg|jpeg|gif|svg|ico|webp|woff2?))".*$
|
||||||
Reference in New Issue
Block a user