From 8a972fce62ef7f060383c56b2d9126e0a233d006 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Fri, 23 Oct 2020 00:15:57 +0300 Subject: [PATCH] Added CIDR to --- Hosts-Blocklists.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Hosts-Blocklists.md b/Hosts-Blocklists.md index 1674cd6..1088d88 100644 --- a/Hosts-Blocklists.md +++ b/Hosts-Blocklists.md @@ -100,7 +100,7 @@ Example: #### `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` #### `important`