Commit Graph

91 Commits (6e2e825a5fe3c4148347067e58309d55e4771bf8)

Author SHA1 Message Date
DL6ER 6e2e825a5f
Rename options "pihole --whiteregex" to "pihole --white-regex" for the sake of readability. The same applied for "whitewild" -> "white-wild"
5 years ago
DL6ER 09190c1735
Only check once for if this is a regex list or not.
5 years ago
DL6ER a95b473417
Rearranage if statements to ensure the proper output is shown for wildcard-style filters.
5 years ago
DL6ER 6f58d58cae
Add --whitewild to help texts and man pages.
5 years ago
DL6ER 40d0caa70b
Add undocumented --whitewild option that does the same --wild does for the whitelist.
5 years ago
DL6ER 96031214c6
Add support for whitelist regex filter management via CLI.
5 years ago
DL6ER 87f75c737a
Review comments.
5 years ago
DL6ER 054c7a2c05
Create new table + view regex_whitelist + rename old regex table to regex_blacklist. This updates the gravity.db version to 3.
5 years ago
DL6ER 0bc112ce52
Query only those columns we actually use when showing domains on the CLI. Show date of last modification instead of addition date for domains.
5 years ago
DL6ER 126f7101ff
Add (optional) date_modified field and use vw_whitelist view in vw_blacklist
5 years ago
DL6ER b4ae142149
Remove printf escaping (we will realize it differently) and ensure we're using single quotes for strings (although double quotes are possible, too)
5 years ago
DL6ER 3fe43ce1d9
Rely on default value (database provided) for date_added when adding a new domain
5 years ago
DL6ER e04dc9d2bb
Remove sqlitekey variable as the first column of the regex table is now called domain as well
5 years ago
DL6ER a891d64395
We should always exit after displaying a list, even if it is empty
5 years ago
DL6ER 6b1d2523e8
Also print datetime a domain was added when listing the domains on the CLI
5 years ago
DL6ER 08ee9526ad
Review comments
5 years ago
DL6ER a2a7e80007
Add --web for sending a confirmation string when executed from the web interface. This is necessary as the "Reloading DNS service" message does not always propagate through to the web interface when reloading pihole-FTL takes a while.
5 years ago
DL6ER cce66a13b6
Fix output in list.sh when adding a domain that is already present in the target list
5 years ago
DL6ER 43bced7997
Add more comments
5 years ago
DL6ER 788cd78321
Reduce code duplication and add special handling of | character as it might appear in regex filter string
5 years ago
DL6ER e5d1cb5a2e
Rewrite list.sh to operate on database-based lists
5 years ago
DL6ER 165affc39b
list.sh writes into blacklist.txt not black.list so does not need to account for a possibly changed list location
6 years ago
DL6ER f794018e0c
Acknowledge temporary file if disabled for "pihole -b" command
6 years ago
Mcat12 e4e22fb58e
Fix permissive regex
6 years ago
Mcat12 7086a400e8
Use simpler regex format for wildcards
6 years ago
Dan Schaper 3519cc5e44
Space/Tab list.sh
6 years ago
Mcat12 f8d4c36f6d
Add back --wild list.sh help and use -- for long params like --regex
6 years ago
Mcat12 941a766aa3
Replace -wild and -regex with --wild and --regex
6 years ago
Mcat12 1b276a74fe
Display all lines of a list, even if there is no newline at the end
6 years ago
Mcat12 8084c4b2a3
Fix regex period substitution due to switching to bashism
6 years ago
Mcat12 1ca852191f
Fix stickler complaints
6 years ago
Mcat12 af5fc6547a
Fix echoing wrong domain when converting wildcard
6 years ago
Mcat12 70f2b26c86
Escape periods in wildcard converted regex filters.
6 years ago
Mcat12 cfd95dbe87
Fix incorrect variable usage
6 years ago
Mcat12 c5bb404d6a
Emulate wildcard blacklisting via -wild and move regex to -regex
6 years ago
Mcat12 3077c22e4f
Change help strings from wildcard to regex blacklist
6 years ago
Mcat12 0decc37b5a
Appease stickler
6 years ago
Mcat12 4a953b66e0
Make removing regex domains work correctly
6 years ago
Mcat12 8435eeed4d
Don't validate regex domains
6 years ago
Mcat12 cffb4de83b
Use strict grep instead of regex for duplicates
6 years ago
DL6ER d254d6075a
First step from wildcards to regex lists for blocking
6 years ago
Ludovic Rousseau 47bbea9ba7 Use " " to protect parameter substitution
6 years ago
Ludovic Rousseau b7891f92a5 Create blacklist.txt if not existant
6 years ago
Adam Warner 162a7b56fe
force mode is no longer referenced. Regression. Same with `domToRemoveList`
7 years ago
DL6ER 70ad656af0
Save backup as ".bck~" to prevent reading of the file by dnsmasq
7 years ago
DL6ER f22b83d379
Create a backup before emptying the list
7 years ago
DL6ER 114f84c948
Add --nuke option to list.sh that can be used e.g. by Teleporter to empty out lists before importing new content
7 years ago
WaLLy3K 2d8fff099f Pass correct options to gravity.sh
7 years ago
WaLLy3K 406098e55a Speed up refresh time
7 years ago
DL6ER ec4e9780ed Accept underscores when validating domain names (#1571)
7 years ago