mirror of
https://github.com/pi-hole/docs.git
synced 2026-02-15 07:26:03 +00:00
Merge pull request #32 from pi-hole/reload-regex
Add methods to reload the regex list
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user