Block ads and trackers systemwide [root required]

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
ZmHqrta
Posts: 2
Joined: 24 Nov 2016 21:37

Block ads and trackers systemwide [root required]

Post by ZmHqrta » 01 Dec 2016 01:39

This flow requires your phone to already be rooted, otherwise it won't work. The flow gets a large curated list of ad and tracker URLs, and redirects them to an unroutable internal IP address that results in blocking those URLs from all applications systemwide (browsers, apps, etc.). I have set the flow to check for updates every two weeks. Note that the list works well but may be too broad for your wishes. If a website you want to visit is blocked after running the flow, just delete the file /etc/hosts and it will undo everything. You could also manually or automatically edit the file to remove entries for websites you don't wish to block. Credit for the list goes to BSDgeek_Jake from http://forum.xda-developers.com/showthr ... ?t=1916098

Request for help from advanced users: I tried using the download action and running wget as root command, but couldn't get the hosts file to download. It would be nice if someone can help get the download of the file working directly in automagic instead of using a browser to download the file.
Attachments
flow_Update_Adblocking_20161130_203202.xml
(10.01 KiB) Downloaded 1060 times

Post Reply