3 ms·
I tried to use caddy, but I wasn't able to find a currently supported module for IP filtering just a bunch of old unsubscribed ones, does anyone know if this is
by Maskawanian 5y ago
I tried to use caddy, but I wasn't able to find a currently supported module for IP filtering just a bunch of old unsubscribed ones, does anyone know if this is currently possible?
- mholt 5y agoYes, this is very common if I understand you correctly. You want the remote_ip matcher: https://caddyserver.com/docs/caddyfile/matchers#remote-ip https://caddyserver.com/docs/caddyfile/matchers#remote-ip
- francislavoie 5y agoDepends what you mean by "IP filtering", but there's a built-in 'remote_ip' matcher that can let you handle requests from specific IPs/CIDRs differently (such as aborting/forcefully closing the connection): https://caddyserver.com/docs/caddyfile/matchers#remote-ip https://caddyserver.com/docs/caddyfile/matchers#remote-ip