Nginx Ban User Parameter doesn't work
-
for example I want to block these IP’s: 111.111.111.4 ~ 111.111.111.9
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 111.111.111.0/24; worked
for a better rules I use these IP calculator: https://www.ipaddressguide.com/cidr#range
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Nginx Ban User Parameter doesn't work’ is closed to new replies.