Commit Graph

106 Commits (9e96ff37de2e0e2c1f4d2af76360fffc42c65026)

Author SHA1 Message Date
DL6ER 15a9d662ac Add option --comment "whatever" for adding comments for new domains through the CLI interface.
4 years ago
DL6ER cda0133dd1
Revert "Change the regex used for domain validation"
4 years ago
DL6ER 69a909fc4c
On modification of lists, we should send real-time signal 0 instead of SIGHUP. This also preserves the DNS cache of not-blocked domains.
4 years ago
DL6ER b6cd7b8e3d
Use more descriptive names instead of directly using the IDs in list.sh
5 years ago
Adam Warner 869473172c
remove _ from regex descibers
5 years ago
Adam Warner 63e407cfdc
Update advanced/Scripts/list.sh
5 years ago
Adam Warner 0251117c77
Update advanced/Scripts/list.sh
5 years ago
Adam Warner 44e1455b12
Update advanced/Scripts/list.sh
5 years ago
Adam Warner 76460f01e9
Change the regex used for domain validation
5 years ago
Adam Warner 4b8a72fda7
functionise parameter discovery
5 years ago
Adam Warner edaee4e962
remove redundant function and comments
5 years ago
Adam Warner 77bfb3fb67
tidy up variable usage in list.sh Remove some that are redundant
5 years ago
Adam Warner 6a881545b0
tweak wording Signed-off-by: Adam Warner <me@adamwarner.co.uk>
5 years ago
Adam Warner d0de5fda30
Simplify removal of domain from one list when it is requested for another
5 years ago
DL6ER 185319d560
Unite four domain tables into a single domainlist table.
5 years ago
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