Nginx comes with a simple module called ngx_http_access_module to allow or deny access to IP address. The syntax is as follows:
deny IP; deny subnet; allow IP; allow subnet; # block all ips deny all; # allow all ips allow all;
Tags: address, block, ip, linux, nginx, Open Source, subnet
[…] Here is the original post: Nginx: Block And Deny IP Address OR Network Subnets « Error404NotFound […]