The problem is the lack of notification/visibility into what hosts to which the app is connecting.
It’s possible that your solution might work for some small fraction of users, some of the time, for known spying hosts. Many people still want to access Facebook and Instagram, though.
Apple doesn’t allow software like that on iOS.