I am still newbie to nginx.
I am trying to block every request that came from somewhere but not server_name.
According to documentation it should work but I didn't succede.
I assume there are should be another method, say, block in if condition by checking $hostname.
What do you suggest to do in order to block request?