Shameless plug: https://github.com/Barre/privaxy
It’s a proxy that does just this.
It’s a proxy that does just this.
Also, Android blocks user-installed CAs by default now, apps have to opt in to accept user-added ones. That makes it pretty useless. Not sure how iOS deals with this.
If you really want to get rid of ads on android, rooting enables you to patch system SSL routines to disable certificate pinning and more. IOS is an apple product.
https://github.com/Barre/privaxy#local-system-configuration
Personally, I use NextDNS which allows you to block categories, IPs, and use blocklists.
It's set up on the network level, and I have two separate NextDNS "networks" configured. One for the entire network, one for "privileged" users/devices.