Add methods to reload the regex list

Signed-off-by: Mark Drobnak <newtoncat12@yahoo.com>
This commit is contained in:
Mark Drobnak
2018-06-02 11:39:13 -04:00
committed by GitHub
parent a10902410e
commit 958285a91e
+3
View File
@@ -5,6 +5,9 @@ Our implementation is computationally inexpensive as each domain is only checked
## How to use regular expressions for blocking
*FTL*DNS reads in regular expression filters from `/etc/pihole/regex.list` (one expression per line).
To tell *FTL*DNS to reload the list, either:
- Execute the `>recompile-regex` API command (`echo ">recompile-regex" | nc localhost 4711`)
- Send `SIGHUP` to `pihole-FTL` (`sudo killall -SIGHUP pihole-FTL`)
## 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).