Merge pull request #39 from pi-hole/tweak/regex/comments

Tell users that regex lines starting in "#" will be skipped
This commit is contained in:
DL6ER
2018-07-14 15:23:32 +02:00
committed by GitHub

View File

@@ -4,7 +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
*FTL*DNS reads in regular expression filters from `/etc/pihole/regex.list` (one expression per line).
*FTL*DNS reads in regular expression filters from `/etc/pihole/regex.list` (one expression per line, lines starting with `#` will be skipped).
To tell *FTL*DNS to reload the list, either:
- Execute the `>recompile-regex` API command (`echo ">recompile-regex" | nc localhost 4711`)