Home >Backend Development >PHP Tutorial >nginx http Access module directive
location / { : deny 192.168.1.1; : allow 192.168.1.0/24; : allow 10.1.1.0/16; : deny all; }In the above example, only IP addresses other than 192.168.1.1 in the network segments 10.1.1.0/16 and 192.168.1.0/24 are allowed to access.