Frank, On 3/21/25 10:15 AM, Frank Gingras wrote:
On Fri, Mar 21, 2025 at 9:03 AM Christopher Schultz <chris@xxxxxxxxxxxxxxxxxxxxxx <mailto:chris@xxxxxxxxxxxxxxxxxxxxxx>> 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: users-unsubscribe@xxxxxxxxxxxxxxxx <mailto:users-unsubscribe@xxxxxxxxxxxxxxxx> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx <mailto:users-help@xxxxxxxxxxxxxxxx> Why not use a simple RewriteMap instead?
Thanks for the reply. How would I use a RewriteMap for this? -chris --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
![]() |