Added CIDR to

Andrey Meshkov 2020-10-23 00:15:57 +03:00
parent 9f3777260f
commit 8a972fce62
1 changed files with 2 additions and 1 deletions

@ -100,7 +100,7 @@ Example:
#### <a id="client"></a> <a id="client"></a> `client`
The `$client` modifier allows specifying clients this rule will be working for. It accepts both client names or IP addresses.
The `$client` modifier allows specifying clients this rule will be working for. It accepts both client names, IP addresses or CIDR ranges.
The syntax is:
@ -126,6 +126,7 @@ Client names usually contain spaces or other special characters, that's why you
* `||example.org^$client='Frank\'s laptop'` — block `example.org` for the client named `Frank's laptop` only. Note that quote (`'`) in the name must be escaped.
* `||example.org^$client=~'Mary\'s\, John\'s\, and Boris\'s laptops'` — block `example.org` for everyone except the client named `Mary's, John's, and Boris's laptops`. Note that comma (`,`) must be escaped as well.
* `||example.org^$client=~Mom|~Dad|Kids` -- block `example.org` for `Kids`, but not for `Mom` and `Dad`. This example demonstrates how to specify multiple clients in one rule.
* `||example.org^$client=192.168.0.0/24` -- block `example.org` for all clients with IP addresses in the range `192.168.0.0-192.168.0.255`
#### <a id="important"></a> <a id="important"></a> `important`