Caddy module to match the client IP against a list of IP ranges
- Go 100%
| go.mod | ||
| go.sum | ||
| ip_ranges.go | ||
| ip_ranges_test.go | ||
| LICENSE | ||
| README.md | ||
| renovate.json | ||
IP ranges matcher
Caddy module to match client IP against a IP ranges parsed from a file.
Building
$ xcaddy build --with codeberg.org/Codeberg-Infrastructure/caddy-ip-ranges
Syntax
ip_ranges <file>
Example
@blocked ip_ranges blocked.acl
abort @blocked
See Codeberg infrastructure's usage.
License
The code is licensed under the BSD-3 license.