0
<Directory /www>
    Allow Override none
    <Require All>
            Require host !( edu || gov || mil || org)
            Require host  (localhost || *)
    </Require All>
</Directory>

As a stupid human I'm looking for a way to replace the * with a list of say 1-250,000 carefully selected ip addresses. Environment variables ? Select into ? Not even sure how to take this toy of mine to the next level. Anyone have anything like this working ?

Toy is currently labeled as TheLargerOcean net Self signed cert.

Romeo Ninov
  • 5,263
  • 4
  • 20
  • 26
  • You could use [`mod_rewrite`](https://httpd.apache.org/docs/2.4/howto/access.html#rewrite) instead of `Require ... allow`. The [`RewriteMap`](https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#mapfunc) directive could look up an ip address in a text file, database, etc. – larsks Sep 11 '22 at 12:54

0 Answers0