-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add antigravity (subscribed allowlists with wildcard support) #1579
Conversation
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/use-to-whitelist-in-abp-style-adlists/63603/63 |
Would it make sense (speed?) to check antigravity before gravity? If it's in the former we don't need to check the latter.
I think this needs some words added to the documentation. Probably a small list of the order things are checked by FTL and what takes precedence over other things. |
You are right about a possible speed benefit, thanks for the suggestion. I already pushed an inversion of |
Anything missing on this one? Just in case it got forgotten (asking for a friend). If this needs more review time that's fine, too. |
Needs more time. |
Rebased on latest |
ba0824c
to
8db2156
Compare
Kindly trying to bump this up in the review todo lists before it gets considered completely abandonned. I still think this is an important (even of not essential) feature for Pi-hole to go forward. |
Are we sure this is the case? It looks like the syntax begins Tried this branch with @hagezi's whitelist (here), which contains entries that start Edit: Note to self, read the linked Discourse thread above https://discourse.pi-hole.net/t/use-to-whitelist-in-abp-style-adlists/63603/60 |
|
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
…y deleting related domains in antigravity Signed-off-by: DL6ER <dl6er@dl6er.de>
… match was found Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
8db2156
to
64e20b0
Compare
Rebased on latest development-v6 |
So that I'm super crystal clear on this... Are we saying with this PR that we will accept subscribed allowlists only if they are in the same format as the actual blocklists, and not with the "correct" I don't think I've seen any example allowlists that use the |
Signed-off-by: DL6ER <dl6er@dl6er.de>
bbff62c
to
667a982
Compare
Signed-off-by: DL6ER <dl6er@dl6er.de>
…ion in parse-list Signed-off-by: DL6ER <dl6er@dl6er.de>
Functionally this appears to work as expected. I added the following as a blocklist:
And then added the following an allowlist (which contains the single domain I added in the above gist)
I suppose all that remains is to tweak the functionality of the query list endpoint (and the webpage wording) to also check allowlists |
Signed-off-by: DL6ER <dl6er@dl6er.de>
b530d0b
to
fcca595
Compare
Signed-off-by: DL6ER <dl6er@dl6er.de>
After some more testing, I'm happy for this to land - but I will restate that the pihole -q functionality should probably take these lists into account, too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appears to work as intended
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-v6-beta-testing/65413/1 |
Is that correct? For me it looks that TLD domains are not supported on v6, neither on allow or blocklists. v5 added support for those in allowlist with this pi-hole/pi-hole#5240 |
This is a regression of https://github.com/pi-hole/FTL/pull/1667/files FTL/src/tools/gravity-parseList.c Lines 140 to 141 in 6e25f5c
in conjunction with FTL/src/tools/gravity-parseList.c Lines 86 to 89 in 6e25f5c
|
Yes it fixes LTD issue like commented in there.
|
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: |
What does this implement/fix?
Add support for new
antigravity
table added in pi-hole/pi-hole#5330Subscribed allowlists support the exact same syntax as in gravity:
@@||...^
ABP-style wildcardsSubscribed allowlists can only permit domains from subscribed blocklists. They cannot overwrite manually blocked domains, e.g., by regex or local blocklist domains.
The existing logic is extended such that
gravity
is only checked when there was noantigravity
match (performance optimization). ABP-style domains are only checked when Pi-hole knows there are any in the lists (performance optimization).Pick your subscribed allowlists wisely, they can easily undo all the adlist-related blocking on your Pi-hole, e.g., when containing something like
@@||com^
, no*.com
domain will be blocked due to gravity any longer.Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): pi-hole/docs@3e3d72c
By submitting this pull request, I confirm the following:
git rebase
)Checklist:
developmental
branch.