Page 1 of 1

Blocking ads when thetering

PostPosted: Sun Feb 14, 2016 10:37 pm
by Croatoan2323
Is it possible to block ads for connected users when wifi thetering?

Re: Blocking ads when thetering

PostPosted: Thu Feb 18, 2016 1:01 pm
by rach
Hey Croatoan2323!

Thanks for reaching out to us.
Thethering on Android uses the same mechanism as we use to register our proxy (on a rooted phone), which then effectively overwrites our proxy registration.
Therefore it's not possible to block ads over wifi tethering

Let us know in case you have any other question.

Re: Blocking ads when thetering

PostPosted: Thu Feb 18, 2016 10:31 pm
by Croatoan2323
What about rooting and blocking at host level?

Re: Blocking ads when thetering

PostPosted: Fri Feb 19, 2016 1:49 pm
by rjeschke
What you do mean with 'rooting and blocking at host level'?

There are basically two ways Adblock Plus for Android can be set up as a proxy:

  • Via setting the proxy manually on a specific WiFi connection. This then only blocks ads via Wifi
  • Via IPTABLES on a rooted phone. This creates a redirect that re-routes all outgoing traffic on port 80 to our proxy. This then blocks ads on mobile data and WiFi

When you're using WiFi tethering you don't have any other option than using a rooted phone, but this doesn't help you here.

Android also uses IPTABLES to create a redirect to route all incoming, tethered traffic via WiFi to the mobile data connection. As this redirect
is more specific than the one we used, it basically overrides our rule and routes all traffic directly to the mobile data connection, bypassing
our proxy.

This is why you can not block ads via WiFi tethering.

Re: Blocking ads when thetering

PostPosted: Fri Feb 19, 2016 4:31 pm
by lewisje
I think the OP was asking about using the HOSTS file, which is doable but outside the scope of this forum.

Re: Blocking ads when thetering

PostPosted: Sun Feb 21, 2016 9:29 pm
by Croatoan2323
I was thinking is it possible to block ads while thetering with ABP at root level :) It looks like it's not possible.