DL6ER
7abf349730
Use `echo "ABC" | pihole tricorder` to upload to Pi-hole's medical tricorder. Uses SSL if available.
7 years ago
WaLLy3K
c35c7b2cea
Wrap in double brackets
7 years ago
WaLLy3K
58353e2839
Update queryFunc() to search Whitelist
...
If there is a match in Whitelist/Blacklist/Wildcards, `[ ! -t 1 ]` will cause the search to end if the terminal is closed when the script is called. This has the intended effect of allowing a user to search for a W/B/W domain (as well as all the adlists it's found in) using `pihole -q` via Terminal, but the script will stop searching after a W/B/W match when called by the block page.
7 years ago
WaLLy3K
3081c151bd
Perform EXACT searches on HOSTS lists correctly
...
`\s` on the end may be overkill, but it is the existing scanList() behaviour.
7 years ago
WaLLy3K
a0603ad3b7
Update queryFunc()
...
* Allow scanList() to search files using a wildcard by removing quotes wrapped around `${list}`
* scanList() will not provide a domain ouput on each string if exact is specified (`grep -l`)
* Remove unused processWildcards() function
* Return a message if no domain is specified
* IDN domains are converted to punycode when running a `pihole -q` search if the `python` package is available, otherwise will revert to current behaviour
* Scan Blacklist & Wildcards first, exiting from search if a match is found (Fixes #1330 )
* Use one `grep` subshell to search for all "*.domains" lists at once (opposed to looping to get every matching file name, and then spawning a `grep` instance for every matching file)
* queryFunc() will not return "(0 results)" output from files where no match is found
* Sort results based off list number
* Return a message if no results are found
7 years ago
Anthony Giorgio
fd584dd03b
Formatting cleanup.
...
Convert backticks to quotes to fix error message.
Make Pi-hole capitalization consistent.
Make Pi-hole capitalization consistent.
7 years ago
Mcat12
c4b43f92ce
Fix help text bug
...
Fixes #1325
7 years ago
Dan Schaper
b8f1eadb7f
Shift off `checkout` from being passed to script from `pihole`
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
7 years ago
DL6ER
8a14a63d5d
Pi-hole checkout feature
7 years ago
DL6ER
dce3e50a00
Check for existence of wildcard blocking list before trying to acces it
7 years ago
Dan Schaper
17b0db6515
Fix for calling -w without -a.
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
7 years ago
Dan Schaper
83b0600863
Carriage return or newline based webcalls.
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
7 years ago
Dan Schaper
38961fb31b
Help text clarification and addition of the automated debuggin flag.
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
7 years ago
Dan Schaper
ba5bbf3523
Modify `pihole` for `-d -a` arguments.
7 years ago
Jacob Salmela
7a1a2dec67
update license to EUPL on core files
7 years ago
Markus Napp
19e30b829a
Add wildcard description to help text, improve other help texts
7 years ago
Jacob Salmela
51acdfa633
remove pihole -s flag
7 years ago
DL6ER
2935275227
Merge branch 'development' into wildcardblacklisting
8 years ago
Adam Warner
12bec1df68
Merge pull request #1048 from pi-hole/tweak/simplify_webpage.sh
...
Major simplification of webpage.sh + extend DHCP to IPv6
8 years ago
DL6ER
2b778695b1
Implement querying ad lists support for wildcards (what hell of a bash experience)
8 years ago
DL6ER
40798da6b1
Add blacklisting wildcard support
8 years ago
DL6ER
d0cd39a25f
Added space behind :53 to only match port 53
8 years ago
DL6ER
1e627c7e8f
Make webpage.sh fully library style
8 years ago
DL6ER
9170488b0a
Test if DNS service is listening on local port 53
8 years ago
DL6ER
c674a175ee
Make grep case insensitive
8 years ago
Promofaux
906a1753be
specifically comment out gravity.list addn-host
8 years ago
Adam Warner
bebb569c43
Merge pull request #964 from pi-hole/queryadsonlyexactmatches
...
pihole -q: Add option to show all partial or only exact matches
8 years ago
Mcat12
74e33bb1a0
Merge pull request #973 from pi-hole/taillog
...
Add tail argument to automatically "tail -f" pihole.log
8 years ago
Mcat12
b591df55b0
Tell user how to exit tail command
8 years ago
Mcat12
b9e0e88fe9
Update pihole
8 years ago
DL6ER
5120d9ec33
Add tail option
8 years ago
DL6ER
c0886cb5c6
pihole -q <domain> is partial matching (as before), pihole -q <domain> -exact is exact matching (new behavior)
8 years ago
DL6ER
294df8690c
Do only one grep on each of the lists and count the number of non-empty lines in the result. Improves speed by factor of 2x
8 years ago
DL6ER
fb72ac9904
Show only exact matches for pihole -q
8 years ago
DL6ER
74cb79252c
Only looking for blocking entries (do not scan whitelist.txt)
8 years ago
DL6ER
6cd3c93472
Also query white- and blacklist
8 years ago
DL6ER
eb63e75379
No need for pipe here
8 years ago
Dan Schaper
2ec4acfe52
Begin fixing exit values.
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Mcat12
3ba7d7640f
Merge pull request #933 from DL6ER/delayedreactivation
...
Add possiblity for delayed reactivation of blocking
8 years ago
DL6ER
7bf0985a57
Extended help text of main pihole command
8 years ago
DL6ER
f50cbe74cb
Changed -web (webpage) to -a (admin)
8 years ago
DL6ER
291ca0874a
Fixed two more typos
8 years ago
DL6ER
96f2aa1803
fixed typo
8 years ago
DL6ER
c6857501aa
Removed check for availability of nohup
8 years ago
DL6ER
3aba1607b2
Removed debug echos
8 years ago
DL6ER
f667298b64
Added possiblity for delayed reactivation of blocking
8 years ago
DL6ER
db278d81e4
Added webpage.sh
8 years ago
Dan Schaper
1d64ad1ccd
Stash all changed files, clean directory and pull updates.
8 years ago
Dan Schaper
dfb4ac0365
Keep .yml's from going to user local repos.
8 years ago
Dan Schaper
0ef8832b04
whitespace
8 years ago