nginx block subnet

How do I block or deny access based on the host name or IP address of the client visiting website under nginx web server?

{ 13 comments }