for example I want to block these IP's: 22.214.171.124 ~ 126.96.36.199
So I put on the form 111.111.111.*
which is translated into Nginx rules: 111.111.111.[0-9]+;
unfortunately Nginx won't accept that: ...[emerg] invalid parameter "111.111.111.[0-9]+" in ...
I Googled a bit and found that 188.8.131.52/24; worked
for a better rules I use these IP calculator: http://www.ipaddressguide.com/cidr#range