Tardo / docker-privoxy-https

Alpine docker with privoxy enabled to work with HTTPS
https://hub.docker.com/r/ghtardo/docker-privoxy-https
3 stars 0 forks source link

Custom ADBLOCK_FILTERS #2

Open humphreysl opened 1 month ago

humphreysl commented 1 month ago

I can't seem to get any custom ADBLOCK_FILTERS to work. Maybe it's something I'm doing wrong.

Are you able to provide any examples here in your documentation that we could follow?

I have multiple ADBLOCK_URLS working fine.

Tardo commented 1 month ago

Hi @humphreysl I'm sorry I didn't answer sooner... I didn't realize there was an open issue!

You can see an example here: https://github.com/Tardo/docker-privoxy-https/blob/43f07950fb8a6d8253146da1f1775731107dce2f/tests/conftest.py#L45

Anyway, my future intention is to create a “native” privoxy plugin. The way the script applies the rules makes privoxy extremely slow if you enable some of the options available to the script via ADBLOCK_FILTERS.

Browser addons for blocking content work in a different way. They inject CSS and javascript code directly into the page. That should be the goal.

*** I will update the project and write tests to make sure the filters work.

humphreysl commented 1 month ago

No problem - thanks for getting back to me.

Thanks for sharing the examples - I will take a look.

I agree on the goal. If we could effectively replicate the behaviour of something like uBlock Origin but within a Proxy such as your Privoxy implementation, that would be perfect. Network wide, ad-blocking directly injected in to the page without the need to install anything on the Client. Just tell it to use a Proxy.

On Wed, 28 Aug 2024 at 02:43, Alexandre Díaz @.***> wrote:

Hi @humphreysl https://github.com/humphreysl I'm sorry I didn't answer sooner... I didn't realize there was an open issue!

You can see an example here: https://github.com/Tardo/docker-privoxy-https/blob/43f07950fb8a6d8253146da1f1775731107dce2f/tests/conftest.py#L45

Anyway, my future intention is to create a “native” privoxy plugin. The way the script applies the rules makes privoxy extremely slow if you enable some of the options available to the script via ADBLOCK_FILTERS.

Browser addons for blocking content work in a different way. They inject CSS and javascript code directly into the page. That should be the goal.

— Reply to this email directly, view it on GitHub https://github.com/Tardo/docker-privoxy-https/issues/2#issuecomment-2313922719, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ6KFA5GYH6H44CCL6K5ENLZTUTLBAVCNFSM6AAAAABMYGUXCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTHEZDENZRHE . You are receiving this because you were mentioned.Message ID: @.***>