There is NoRoot Firewall that can block outgoing connections not just for a browser but for all programs. It can block connections either by hostname or by IP. Ability to block a particular port or range of ports or all of them. You may create your own rules for all applications (including system) who is allowed to go out and who is not. There're also preferences that allow you to set rules depending on type of network connections - allow/block when connections is over WiFI or mobile network.
NoRoot Firewall
uses an OS feature called VPNService in order to modify routing table. It doesn't create real VPN connection to a server even through it seems so. So basically it act as a local proxy server.
It will require some of your time to setup rules for all applications but you will see a difference on battery life and absents of annoying ads. If you don't want to spend time setting to set blocking/allowing rules, you may train firewall on demand (You will be notified when outgoing connections trying to establish connections). You should be careful when blocking some system processes (IMS/WiFI calling and etc) otherwise many cloud base solutions would stop working.
There is another alternative firewall that doesn't require rooting, it is NetGuard. It is open sourced solution but it has limited feature in free version to compare to NoRoot Firewall
such as - new application notifications, logging of all outgoing traffic, allowing/blocking individual addresses per app. It actively developed and has potential.
Technology behind it is the same as with NoRoot
- it create local VPN on localhost (which is means no any external services that doing filtering, but locally on the phone)
Scores on google play as of today (February 2017):
NoRoot Firewall
- 4.4 with 1,000,000-5,000,000 installations
NetGuard
- 4.2 with 100,000 - 500,000 installations
Both firewalls are able to work on Android 4.0 and up