Barre / privaxy

Privaxy is the next generation tracker and advertisement blocker. It blocks ads and trackers by MITMing HTTP(s) traffic.
GNU Affero General Public License v3.0
2.29k stars 97 forks source link

wildcards don't seem to work in the exclusions list #7

Closed dhc02 closed 2 years ago

dhc02 commented 2 years ago

I've tried both *.dropbox.com and just dropbox.com, and in both cases subdomains continue to generate TLS handshake errors in the log. Adding each offending subdomain fixes it.

I also noticed that the UI says that domains that have handshake failures will be automatically added to the exclusion list, but that doesn't seem to be happening in my case.

Context: MacOS, pre-built binary

Barre commented 2 years ago

I have tried both *.dropbox.com and just dropbox.com, and in both cases subdomains continue to generate TLS handshake errors in the log. Adding each offending subdomain fixes it.

The wildcard exclusion behavior is not exposed to end users by (current) design for three debatable reasons:

I also noticed that the UI says that domains that have handshake failures will be automatically added to the exclusion list, but that doesn't seem to be happening in my case.

Ah, thanks, I will fix this :)

It is a quirk from where it was the case. I then removed this behavior when the project was not yet published as I thought that it would then be trivial for websites to trigger this behavior and get excluded.

dhc02 commented 2 years ago

It is a quirk from where it was the case. I then removed this behavior when the project was not yet published as I thought that it would then be trivial for websites to trigger this behavior and get excluded.

That's a great point. If this became widespread, the effectiveness of Privaxy could evaporate. Perhaps a good compromise would be to add handshake error domains into a checkbox list in the UI, so that it's quick and easy to add them as exclusions if that's what the user wants.

In this case, a total of 5 dropbox.com and dropboxapi.com domains were getting handshake errors (all from the MacOS client, not from visiting the website).

Barre commented 2 years ago

I fixed the explanatory text in d2bfaebc74f83482c60042bf4d92a0db1988fc85. I'm closing as of now as it's not really clear if wildcards are useful as a feature, except when done according to a vendor defined list such at what apple does here: https://support.apple.com/en-us/HT210060