for example I want to block these IP’s: 220.127.116.11 ~ 18.104.22.168
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 22.214.171.124/24; worked
for a better rules I use these IP calculator: http://www.ipaddressguide.com/cidr#range
- The topic ‘Nginx Ban User Parameter doesn't work’ is closed to new replies.