Blocking ads when thetering

Everything about using the stand-alone Adblock Plus app on Android
Post Reply
Croatoan2323
Posts: 3
Joined: Thu Feb 11, 2016 1:36 am

Blocking ads when thetering

Post by Croatoan2323 »

Is it possible to block ads for connected users when wifi thetering?
rach
Posts: 310
Joined: Tue Nov 17, 2015 10:05 am

Re: Blocking ads when thetering

Post 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.
Croatoan2323
Posts: 3
Joined: Thu Feb 11, 2016 1:36 am

Re: Blocking ads when thetering

Post by Croatoan2323 »

What about rooting and blocking at host level?
rjeschke
Posts: 4
Joined: Tue Mar 04, 2014 12:25 pm

Re: Blocking ads when thetering

Post 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.
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: Blocking ads when thetering

Post by lewisje »

I think the OP was asking about using the HOSTS file, which is doable but outside the scope of this forum.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Croatoan2323
Posts: 3
Joined: Thu Feb 11, 2016 1:36 am

Re: Blocking ads when thetering

Post 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.
Post Reply