Ad blocking on android - Divisions by zero

I would like to pirate on my phone sometimes and the ads on websites are problem. I’m not newbie, I know I can install firefox and get the uBlock on it but firefox android is a little bit slow so I prefer to use Opera browser; opera has an ad blocker but it’s a joke compared to uBlock. I’m in a restricted country and my phone is not rooted, so if I use ad block apps like AdAway or Adgaurd they need to create a VPN connection in order to function unless the phone is rooted, and that VPN connection doesn’t let me to enable another VPN in order to visit filtered websites or apps. I’m bot stuck, but felt if I ask here there may be another smart solution for ad blocking on android that can solve these small problems; and the solution would help other people so be kind and provide what you have or know.

Firefox on Android allows a few extensions. A few of those are privacy badger, unlock origin, and decentraleyes. Should meet your need at a base level.

Have you heard about pihole for DNS blocking ? You m might have success when at home on wifi as this would greatly cut down on ads and trackers.

Otherwise, if you think Firefox is too slow to pirate (not sure I understand that, but ok) you can try another browser …aybe try Brave? Ya, maybe some negative publicity lately, but I’m not sure it Bothers me, or perhaps I don’t understand what exactly they might be selling of my info…

I’m sure I mentioned that opera is my main browser because it’s faster. And I don’t care much about my data being sold to chinese government because 1. I’m in a restricted country and they can’t take any usage of my info. 2. I hide myself in other ways.
Setting up a PiHole is a method that should work. Costs a bit if you don’t already have something to host it on.

Pihole for network wide ad blocking (no ads on all apps on all devices within the LAN) then self-host a vpn to keep your phone within that lan.

Tis what I do at least.

Blocks pretty much everything except Youtube, and Twitchs video ads as they serve their own ads from their own domain’s as well as things like sponsored posts on reddit/twitter/facebook.

As a bonus, the vpn gives me secure remote access to my various self-hosted services like Radarr/Sonarr/SABnzbd/qbit/etc, without directly exposing them to the open internet.

Upon re-read I realized you’d like to use a comercial vpn as well (for bypassing restrictions in your country).

You can setup your self-hosted vpn to work in tandem: Your phone stays connected to your own vpn keeping it part of your home LAN, then you setup the device hosting that VPN to also connect to a comercial VPN, routing all LAN traffic headed to WAN to instead go over that comercial vpn escaping the restrictions in your country.

Tailscale ftw!

I use tailscale as a mullvad client. Really happy with both.

This is exactly how I’ve been doing it. Pihole + Wireguard. Set your pihole device as your DNS on everything ya want. It’s shocking how much crap tries phoning home. Especially smart TV’s and streaming sticks(Roku ex).

Set your pihole device as your DNS on everything ya want.

I went one further and defined my pihole as the DNS IP that the dhcp server hands out; then set iptables rules on the router to block all external dns access except for the pihole.

If you’re on my LAN, you must use the LAN DNS server, or you will not get DNS resolved at all. Enforcing ad and telemetry blocking network wide.

How often do you run into issues with certain sites (stuff like banking or Netflix) not liking the blockage? I’m considering doing this bit the WAF needs to be high and not cause her grief or block her from accessing specific stuff.
I’ve had 0 issues with things I want to access being blocked, but if you do want to access a blocked site you can add it to the whitelist via piholes web interface in about 30 seconds (manually or just finding it in the history and clicking ‘whitelist’) or you can disable blocking entirely for 5sec/30sec/5min/indefinitely with 2 clicks (or a custom time).
I considered doing exactly that, but I was afraid of the battery usage, with wireguard always on… Do you have any feedback on that part ?
This, but I personally use Adguard Home + Unbound instead of Pi-Hole + Unbound. Adguard Hone also open source, but it runs as a single service instead of 2. You can easily update it from the web interface when there’s a new release, which makes things easier.
Easiest solution I found was setting a Private DNS on Android. Adguard public DNS address filters pretty much all of them.
AdGuard DNS — ad-blocking DNS server

Create your ad-blocking DNS server that will protect your personal data, prevent tracking and allow you to control access to specific content on the Internet.

Connect to public AdGuard DNS server

Agreed, although I prefer pihole on a separate device. DNS blocking is best blocking.

Adware can detect that crap isn’t loaded, but it is indistinguishable from the crap server being down. Normal page blocking is a lot more detectable, so assume pages then instruct you to disable your blocker.

Also, DNS blocking saves you bandwidth.

I've found it's worked really well. One annoying part is if you use Google search, the top 4/5 results which usually are ads (but eventually redirect to the correct page you want) become inaccessible, as Adguard interrupts it
In your case I’d sacrifice a bit of speed and went with Firefox. Another option is AdGuard + AdGuard VPN, the apps can work together.
controld.com has free resolvers that do the same thing as a pihole. you just go to your phones “Private DNS” setting and at it there. this will work for non-browser apps as well!
Advanced DNS Filtering for Businesses & Consumers | Control D

Control D is a scalable DNS filtering service that blocks malicious threats, unwanted content, trackers, and ads - on all devices.

Advanced DNS Filtering for Businesses & Consumers | Control D
Thanks for this! I use Windscribe VPN and really like it. Didn’t realize there is a free tier for Control D.
Yeah the engine for Control D is the same as for windscribe just with more bells and whistles, and loads of configuration tools on the paid tier. It’s great for smartphones which circumvent ad blocking by putting stuff in apps rather than browsers.
Use firefox and simply deal with the slightly slower app?
I used to be a big fan of Opera back when it was good but I wouldn’t recommend using anything made by them since they got bought out by a shady Chinese company that makes their money off of predatory payday loan apps with exploitative interest rates in a few developing nations. Firefox (and Mull and the like) are the best Android web browsers but if you really want a Chromium-based one then I’d recommend looking into using one that’s open source and not owned by an unethical corporation.

If I were you I’d just root my phone and use it along with AdAway.

If that isn’t an option for you you already got some neat answers like using a public DNS or your own self hosted.

NextDNS
is this any better than adguard dns or just similar?
way better, as it lets you choose the block lists, add custom domains or whitelist the ones that are being blocked, check the statistics on which domain is being blocked the most, and some more nifty stuff. and it’s also not made by a Russian company.
actually I’m just using the public dns so I don’t think I can do that
Seconded. NextDNS is incredible and you don’t even have to subscribe to get the benefit unless you’re a super heavy user.
Pihole + firefox + ublock for adds here. Im not using this, but its also possible to set your home server connect to VPN provider and then route all traffic through that. Then you can use your selfhosted VPN to connect with phone and use both at the same time. Or just enable add blocking on your VPN provider, I guess most of them have one
Been using dnsforge.de along with ublock origin on fennec. Seems to work well enough, but I might go back to personalDNSfilter to block ads with local VPN if i notice anything slipping through
Firefox and Kiwi browsers both support full Ublock Origin
Perhaps worth trying kiwis built in adblocking before you start. I recently installed kiwi so I could run ‘i still don’t care about cookies’. Seems really nice
Firefox with uorigin

This. I haven’t had ads since Adblock came out in 2009. I switched to uBlock Origin few years ago, without it browsing would be intolerable.

Last spring I helped a colleague with her work laptop and saw Chrome without adblocker. It was hideous.

I installed uOrigin instantly and got the reputation of “Tech Wizard Who Can Make Ads Go Away”. Turned out that almost no one had ever even heard of this possibility.

Android / iOS | FreeMediaHeckYeah

Apps, Jailbreaking, Android Emulators

I use the Samsung browser with the Adguard plug-in, which works great with customizable filter lists.

Samsung browser: https://play.google.com/store/apps/details?id=com.sec.android.app.sbrowser
Adguard for samsung browser: https://play.google.com/store/apps/details?id=com.adguard.android.contentblocker

Firefox + unlock Origin. Use alternative opens-source apps. DNS: Adguard, NextDNS, etc.
And that is the reason why I’m rooted and you should be to. Also if you want to add firewall into combination with vpn and adblock, there is definitely no other way.
What do you do about banking apps onba rooted phone? Doe’s magicx work for those apps
I heard rooting has some risks and disadvantages but I have no experience with it. is it good?
It depends if you mind the cons, which doesn’t effect me. You can use banking apps, cause you hide magisk root app from them, you have to update manually, cause you need to patch update file to include root (easy), adobe software cannot be fooled by magisk hide so you have to pirate it and Samsung devices will irreversibly trip Knox so no Samsung pay and password.
I recommend cromite’s (fork of bromite) adblocking. It works well and I don’t see ads (at least the big ones, maybe I overlooked some smaller ones)

firefox beta with ublock.
if you use beta, you can install any extensions by adding them to an AMO extension collection.
also make sure to get some sort of dns ad blocker
you have three options:

  • Self-hosted: Pihole
  • "Cloud": NextDNS (this is what I’m using)
  • Local: AdAway
    (drains battery unless you have root)
Firefox + uBlock origin, and reVanced for YouTube ad-blocking/other features.
Try Fennec (4chan recommended) Try kiwi to use any chrome extension
Mull is a better choice.
RethinkDNS and Firefox+Ublock-Origin

I find configuring an ad blocking private dns over https DOH in Firefox much faster and efficient compared to other methods. Firefox Extensions and VPN add unnecessary over head.

If interested, the steps are documented in my notes - abskmj.github.io/notes/…/firefox-dns-https/

Setup DNS over HTTPS (DOH) on Firefox Android

Setup DNS over HTTPS (DOH) in a Firefox browser, on an Android device for privacy and security.

Notes
Personally I use my own selfhosted AdGuard Home instance, configured on my phone as the private DNS server, therefor connecting via encrypted DOT. I’ve also got this server configured as the DNS on my home network router, meaning every and any device in the network profits from the adblocking, no matter how the respective DNS is configured. If you dont want to mess around with linux, docker and selfhosting in general, NextDNS seems to be a very valuable option as well. In any case, this is a lot more efficient than having an adblocking extension in your browser, since AGH/NDNS will also block ads and tracker in any other app that isn’t Firefix.

If you don’t mind paying, Blokada has a “cloud” subscription. You set your DNS settings on the phone to what they give you, turn it on in the app once, then it runs without using the VPN method.

I use it because, even though it’s another God damn subscription, it seems to work better for me and now I don’t have to think about it.

NextDNS has a free ad-blocking option.
I’ll look into it, thanks
Just signed up for this. Thanks for the heads up.
Kiwi Browser is Chromium based and supports add-ons like uBlock Origin.
Kiwi Browser - Fast & Quiet - Apps on Google Play

Kiwi Browser is a fast browser for Android with extensions support

Yes but that shit is a terrible browser!
Why is Kiwi a terrible browser?
Firefox for mobile has a few addons support, including ublock origin
With an old phone Firefox is indeed slow. Startup is slow, page loading is slow, even scrolling is sluggish. On Chromium browser the performance is a lot better if your phone is not that fast.