Caddy module to match the client IP against a list of IP ranges
Find a file
2026-03-30 00:59:16 +02:00
go.mod chore(deps): update module github.com/caddyserver/caddy/v2 to v2.11.2 [security] 2026-03-24 00:08:27 +00:00
go.sum chore(deps): update module github.com/caddyserver/caddy/v2 to v2.11.2 [security] 2026-03-24 00:08:27 +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.