Re: Allow or Deny from large numbers of hosts
Christopher Schultz <[email protected]> Fri, 21 Mar 2025 12:51:38 -0400
| Newsgroups | gmane.comp.apache.user |
|---|---|
| Message-ID | <[email protected]> |
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