Skip to content

Commit

Permalink
Merge pull request #37 from pi-hole/fix/FTLDNS-regex-list
Browse files Browse the repository at this point in the history
Fix list formatting in how to reload regex
  • Loading branch information
AzureMarker authored Jun 17, 2018
2 parents 9b5851f + 7e9407a commit a7d259a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/ftldns/regex.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit a7d259a

Please sign in to comment.