Score:0

How allow a set of IPs and deny everything else? (.htaccess and apache 2.4)

us flag

I need allow internet access from a set of IPs and deny everything else.

How can I do that?

I tried this:

<RequireAll>
  Require all denied
  Require ip x.x.x.x/xx y.y.y.y/yy
</RequireAll>

this:

<RequireAll>
  Require all denied
  Require ip x.x.x.x/xx
  Require ip y.y.y.y/yy
</RequireAll>

and this:

<RequireAny>
  Require ip x.x.x.x/xx y.y.y.y/yy
</RequireAll>

also this:

Require all denied
Require ip x.x.x.x/xx
Require ip y.y.y.y/yy

I couldn't find the correct way to do the restriction.

Score:0
in flag

This should do it:

<RequireAny>
    Require ip x.x.x.x
    Require ip y.y.y.y
    Require ip z.z.z.z
</RequireAny>
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.