Score:1

How to allow or deny IP with regex or Wildcard in NGINX?

in flag

I want to allow/deny set of IPs in my Nginx

allow   192.168.1.75;
allow   192.168.1.76;
allow   192.168.2.25;
allow   192.168.2.30;

Can I do this something like this?

allow   192.168.*.*;
Score:1
jp flag

Use CIDR notation.

For example:

allow 192.168.0.0/16;
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.