pyed / ipfilter

ipfilter is a middleware for Caddy that blocks or allows requests based on the client's IP
https://caddyserver.com/docs/ipfilter
Apache License 2.0
83 stars 19 forks source link

Require exactly one `rule` directive per block #32

Closed krader1961 closed 5 years ago

krader1961 commented 5 years ago

If a rule directive isn't provided it defaults to allow which may confuse people. So require the user to explicitly specify whether the filter should block or allow. Similarly, users might be tempted to specify the rule more than once per block which means they have misunderstood how the ipfilter DSL works. So treat that as an error.

Resolves #31

pyed commented 5 years ago

Thank you for your work.