Caddy module to match the client IP against a list of IP ranges
Find a file
Gusted ad7493782f
Use bart lite
Bart fast is not allowed to have a zero-size value (`struct{}`), so lets
use Lite who do have this.
2026-02-17 19:03:04 +01:00
go.mod chore(deps): update module github.com/gaissmai/bart to v0.26.1 2026-02-07 00:11:52 +00:00
go.sum chore(deps): update module github.com/gaissmai/bart to v0.26.1 2026-02-07 00:11:52 +00:00
ip_ranges.go Use bart lite 2026-02-17 19:03:04 +01:00
ip_ranges_test.go Add testing 2025-09-22 22:47:37 +02:00
LICENSE Initial commit 2025-04-18 01:20:24 +02:00
README.md Move to Codeberg-Infrastructure 2025-04-18 17:54:08 +02:00
renovate.json chore: Configure Renovate (#1) 2025-10-20 19:34:46 +02:00

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.