diff --git a/docs/ftldns/regex/debugging.md b/docs/ftldns/regex/debugging.md deleted file mode 100644 index 75c195d..0000000 --- a/docs/ftldns/regex/debugging.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pi-hole Regex debugging mode -To ease the usage of regular expression filters in *FTL*DNS, we offer a regex debugging mode. Set -``` -REGEX_DEBUGMODE=true -``` -in your `/etc/pihole/pihole-FTL.conf` and restart `pihole-FTL` to enable or disable this mode. - -Once the debugging mode is enabled, each match will be logged to `/var/log/pihole-FTL.log` in the following format: -``` -[2018-07-17 17:40:51.304] DEBUG: Regex in line 2 ("((^)|(\.))twitter\.") matches "whatever.twitter.com" -``` -The given line number corresponds to the line in the file `/etc/pihole/regex.list`. - -Note that validation is only done on the first occurrence of a domain to increase the computational efficiency of *FTL*DNS. - -{!abbreviations.md!} diff --git a/docs/ftldns/regex/overview.md b/docs/ftldns/regex/overview.md index 198a21d..65edd42 100644 --- a/docs/ftldns/regex/overview.md +++ b/docs/ftldns/regex/overview.md @@ -11,4 +11,19 @@ To tell *FTL*DNS to reload the list, either: - Send `SIGHUP` to `pihole-FTL` (`sudo killall -SIGHUP pihole-FTL`) - Restart the service (`sudo service pihole-FTL restart`) +## Pi-hole Regex debugging mode +To ease the usage of regular expression filters in *FTL*DNS, we offer a regex debugging mode. Set +``` +REGEX_DEBUGMODE=true +``` +in your `/etc/pihole/pihole-FTL.conf` and restart `pihole-FTL` to enable or disable this mode. + +Once the debugging mode is enabled, each match will be logged to `/var/log/pihole-FTL.log` in the following format: +``` +[2018-07-17 17:40:51.304] DEBUG: Regex in line 2 ("((^)|(\.))twitter\.") matches "whatever.twitter.com" +``` +The given line number corresponds to the line in the file `/etc/pihole/regex.list`. + +Note that validation is only done on the first occurrence of a domain to increase the computational efficiency of *FTL*DNS. + {!abbreviations.md!} diff --git a/mkdocs.yml b/mkdocs.yml index b6857b6..0bf5dee 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -47,7 +47,6 @@ pages: - 'RegEx blocking': - "Overview": "ftldns/regex/overview.md" - "Tutorial": "ftldns/regex/tutorial.md" - - "Debugging": "ftldns/regex/debugging.md" - 'Privacy levels': "ftldns/privacylevels.md" - 'Long-term database': "ftldns/database.md" - 'Telnet API': "ftldns/telnet-api.md"