Fix list formatting in how to reload regex

Also added a third method of just restarting the service.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2018-06-16 19:42:18 -04:00
parent 9b5851fb62
commit 7e9407a737

View File

@@ -6,8 +6,10 @@ 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`)
- Restart the service (`sudo service pihole-FTL restart`)
## 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).