From a72ed2225c9382eac2ac34c0f60cbf86be081bf0 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 24 May 2018 14:21:12 +0200 Subject: [PATCH] Change documentation as we're not using BLOCKINGREGEX any longer when https://github.com/pi-hole/FTL/pull/288 is merged) Signed-off-by: DL6ER --- docs/ftldns/configfile.md | 7 ------- docs/ftldns/regex.md | 6 +----- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/docs/ftldns/configfile.md b/docs/ftldns/configfile.md index f660f06..3d56d86 100644 --- a/docs/ftldns/configfile.md +++ b/docs/ftldns/configfile.md @@ -78,11 +78,4 @@ Should `FTL` reply queries to blocked domains with IPs or `NXDOMAIN`? **[More details](blockingmode.md)** -### BLOCKINGREGEX -`BLOCKINGREGEX=...` - -If defined, `FTL` will block all incoming queries which match this RegEx. - -**[More details](regex.md)** - {!abbreviations.md!} diff --git a/docs/ftldns/regex.md b/docs/ftldns/regex.md index 4a0d186..5ae055d 100644 --- a/docs/ftldns/regex.md +++ b/docs/ftldns/regex.md @@ -4,11 +4,7 @@ We implement the ERE flavor similar to the one used by the UNIX `egrep` (or `gre Our implementation is computationally inexpensive as each domain is only checked once for a match (if you query `google.com`, it will be checked against your RegEx. Any subsequent query to the same domain will not be checked again until you restart `pihole-FTL`). ## How to use regular expressions for blocking -Add a line -``` -BLOCKINGREGEX=^abc$ -``` -in your `/etc/pihole/pihole-FTL.conf` and restart `pihole-FTL`. **Note: this is subject to change (we plan to support a list of regular expressions for blocking in the near future).** +*FTL*DNS reads in regular expression filters from `/etc/pihole/regex.list` (one expression per line). ## Pi-hole regular expressions tutorial We provide a short but thorough introduction to our regular expressions implementation. This may come in handy if you are designing blocking rules (see also our cheat sheet below!). In our implementation, all characters match themselves except for the following special characters: `.[{}()\*+?|^$`. If you want to match those, you need to escape them like `\.` for a literal period, but no rule without exception (see character groups below for further details).