for example I want to block these IP's: 18.104.22.168 ~ 22.214.171.124
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 126.96.36.199/24; worked
for a better rules I use these IP calculator: http://www.ipaddressguide.com/cidr#range