The network segment is written like this: 192.168.1.0/24.
deny 192.168.1.11;
deny 192.168.1.123;
deny 10.0.1.0/24;
If you want to implement such an application, besides a few Except for IP, all others are rejected.
Then you need to write like this in ip.balcklist
allow 1.1.1.1; In server "{}", adding deny IP address within the braces restricts access to a certain IP address; allow IP address only allows access to a certain IP address;
#The command to block a single IP is
123.45.6.7
The above introduces nginx to ban access to a certain IP, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.