aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorRemilia Da Costa Faro <remilia@remilia.ch>2025-03-21 20:39:34 +0100
committerGitHub <noreply@github.com>2025-03-21 15:39:34 -0400
commitd6d879133e67aa967d849a0b73ddde25ddd4bb54 (patch)
tree937ed74692510086da438c6802ad42a530b0392a /go.mod
parente7b9b17b92b3a6a3122d9d54a9d317dd3720342c (diff)
downloadanubis-d6d879133e67aa967d849a0b73ddde25ddd4bb54.tar.xz
anubis-d6d879133e67aa967d849a0b73ddde25ddd4bb54.zip
Allow filtering by remote addresses (#52)
* Added the possibility to define rules for remote addresses * Added change in changelog * Added check for X-Real-Ip and X-Forwarded-For when checking for remote address filtering * cmd/anubis: refine IP filtering logic * Optimize the configuration so that the IP trie is created once at application start instead of dynamically being created every request. * Document the changes in the changelog and docs site. * Allow pure IP range filtering. * Allow user agent based IP range filtering. * Allow path based IP range filtering. * Create --debug-x-real-ip-default flag for testing Anubis locally without a HTTP load balancer. --------- Co-authored-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod1
1 files changed, 1 insertions, 0 deletions
diff --git a/go.mod b/go.mod
index 4275c36..8caa7fa 100644
--- a/go.mod
+++ b/go.mod
@@ -7,6 +7,7 @@ require (
github.com/facebookgo/flagenv v0.0.0-20160425205200-fcd59fca7456
github.com/golang-jwt/jwt/v5 v5.2.1
github.com/prometheus/client_golang v1.21.1
+ github.com/yl2chen/cidranger v1.0.2
)
require (