nginx allow all; nginx block IP

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

{ 14 comments }