Nginx allowlist or denylist

From wikinotes
# explicit allowlist
Server {
    allow 192.168.1.0/24;  # entire subnet
    deny all;
}