From 958285a91eae55607532b2dbae4da32a984ad048 Mon Sep 17 00:00:00 2001 From: Mark Drobnak Date: Sat, 2 Jun 2018 11:39:13 -0400 Subject: [PATCH] Add methods to reload the regex list Signed-off-by: Mark Drobnak --- docs/ftldns/regex.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/ftldns/regex.md b/docs/ftldns/regex.md index 5ae055d..8b9ffb4 100644 --- a/docs/ftldns/regex.md +++ b/docs/ftldns/regex.md @@ -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).