On Fri, Mar 21, 2025 at 12:53 PM Christopher Schultz < [email protected]> wrote:
> Frank, > > On 3/21/25 10:15 AM, Frank Gingras wrote: > > On Fri, Mar 21, 2025 at 9:03 AM Christopher Schultz > > <[email protected] <mailto:[email protected]>> > wrote: > > > > All, > > > > Is there a way to load a bunch of allow or deny hosts from a file or > > other data-store? I have several dozen CIDR expressions and they will > > need to change periodically, so it would be more convenient if I > could > > load them from at least a file on the disk and clean-up my config a > bit. > > > > I suppose I could > > > > Include my-allows.conf > > Include my-denies.conf > > > > And then use awk/sed/whatever to convert the lists of hosts into > "Allow > > from [host]" and "Deny from [host]" but less tooling would be more > > convenient, of course. > > > > -chris > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > <mailto:[email protected]> > > For additional commands, e-mail: [email protected] > > <mailto:[email protected]> > > > > > > Why not use a simple RewriteMap instead? > > Thanks for the reply. How would I use a RewriteMap for this? > > -chris > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > If the map finds a match, then use a RewriteRules with [F]
