Mother of AD BLOCKING - 'hosts' file for your Android Baby - Android General

Now available on http://forum.xda-developers.com/showthread.php?p=32276021#post32276021

Thanks for this updated host file but to be really frank with you, i can't believe the fact that thia host file is capable of blocking more than 200000 domains. Normal apps like adfree and adblock have block max of 50000 domains. So, it is quite hard to believe. Hope it is completely legit. :Fingers crossed:
Sent from Hell!!

to .xxx.
.xxx. said:
Thanks for this updated host file but to be really frank with you, i can't believe the fact that thia host file is capable of blocking more than 200000 domains. Normal apps like adfree and adblock have block max of 50000 domains. So, it is quite hard to believe. Hope it is completely legit. :Fingers crossed:
Sent from Hell!!
Click to expand...
Click to collapse
This has nothing to do with the adfree or adblock or any other apps. The simple concept is to BLOCK a requests (AD) to a address though a loopback (127.0.0.1) address and it is forcefully dropped by the system. The is no System Load or CPU/Memory hogs. Everything is Linux and it follows a Basic Logic of Name/IP Resolution.
AND It Magically WORKS...
Happy BLOCKING.
..................................................................
Samsung Galaxy S2
Firmware: ICS 4.0.4 XWLPX
ROM: VK ROM 5.4.4
Kernel: Phenomenal 6.1
Modem: BVLP7
MODS: xLOUD,SRS,BRAVIA Engine,ALSA Resampler, Audio Effects Engine

Just wanted to say thank you for this. This is awesome! Thanks for your hard work.
J

BSDgeek_Jake said:
Mother of AD BLOCKING - 'hosts' file for your Android Baby - Updated 05 December 2012
I AM BACK WITH NEW UPDATE.
CHANGES: :angel:
1. Duplicate entries removed.
2. Alternate Malware Domain Blocks.
3. Converted TAB to SPACES, Encoding to UTF-8, Line Endings to LF (UNIX).
4. Corrected improper domain names and improper comment entries.
5. Popular File Sharing Sites excluded from list
(mediafire,filestube,depositfiles,box,rapidshare,rapidlibrary,4shared,hotfile,uploading,uploaded,fileserve,zippyshare,filefactory,2shared,etc...)
NOTE: Due to some technical issues i lost my earlier XDA credentials and related posts. NOW-on i will be 'BSDgeek_Jake'
Here i present the Mother of AD BLOCKING to STOP those Annoying ADs (Text and Media), Crazy Malware and Spyware, Possibly POP-Ups and other Nonsense Unwanted Parasites.
NOTE: This 'hosts' file is fully compatible and tested on Android Operating Environment 2.2.x, 2.3.x, 3.x, 4.0.x, 4.1.x
> What is a 'hosts' file? What it Does? Whats in it for Me?
The 'hosts' file contains the mappings of IP addresses to host names and loaded into memory (cache) at startup. Android OS checks the 'hosts' file before it queries any DNS servers, which enables it to override addresses in the DNS. This prevents access to the listed sites by redirecting any connection attempts back to the localhost (127.0.0.1), which is a loopback and traffic is dropped instantly (saving your millions of money used by network traffic 2G/3G/4G). Another feature of the 'hosts' file is its ability to block other applications (bogus applications) from connecting to the Internet, providing the entry exists.
'hosts' file is used to BLOCK ADs, BLOCK Banners, BLOCK 3rd Party Cookies, BLOCK 3rd Party Page Counters, BLOCK Web Bugs, BLOCK Web Hijackers, BLOCK Phishing Sites, BLOCK Malwares, BLOCK Spywares, BLOCK Trackers, BLOCK Unauthorized Application connections to web and BLOCK other Malicious activities...
This is not 100% Protection but atleast it takes care of ALMOST ALL OF THE SECURITY ISSUES FACING FROM THE BAD SITES.
For full Security, Use Antivirus or Security Suite from Android Market.
> Performance Issue? Will my device run SLOW?
I am using this 'hosts' file from my chilhood days and never had any performance issue to date, Although you might have a little delay in startup in miliseconds (you might not even notice, trust me) and then everything will be cool in standby and active mode. I say "Little delay is better than ADs, Malwares and Spywares..."
> Compatibility?
ALL OEM :angel:
Android 2.2.x, 2.3.x, 3.x, 4.0.x, 4.1.x :angel:
> How to install?[/COLOR]
You have to be ROOT (su) to copy the 'hosts' file to '/etc' and '/system/etc' and setting the permissions to 'root:root' and '0444' or 'r-r-r'. Reboot you Android Baby and That It. ENJOY.
> What is the Updated Cycle?
Major Update: 2 Months and Intermediate Updates.
> Any Qyeries?
Ok. Throw me some questions :laugh:
> What is BLOCKED?
carrier*q,airp*sh,open*eint,hey*ap,lea*bolt,moolah*edia,tap*t,ad*ob,in*obi,ad*ense,tech*upportalert,ad*ervices,micro*oft ads,ya*oo ads,goo*le ads, se*rch ads,star*app and many many more.
CURRENTLY 200464 AD DOMAINS BLOCKED :good:
> DISCLAIMER :good:
I take no responsibility of any losses and damages to your Hardware or your Software component/s caused by this piece of code. Although this piece of code is tested by me in my 'LAB' extensively and i found no issues at all and 100% working. YOU HAVE BEEN WARNED :angel:
HAPPY AD BLOCKING.
Click to expand...
Click to collapse
Really GOOD JOB!!! Thank you

good job

Could u explain exactly what is this
In simple nooby language please..thank u
Sent from my GT-I9000 using xda premium

magician369 said:
Could u explain exactly what is this
In simple nooby language please..thank u
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
Its an Advertisement and Harmful Content Blocker.
You phone is most safer and secure from stupid websites and crazy apps.
ENJOY :victory:

VPN app add host files
BSDgeek_Jake said:
This has nothing to do with the adfree or adblock or any other apps. The simple concept is to BLOCK a requests (AD) to a address though a loopback (127.0.0.1) address and it is forcefully dropped by the system. The is no System Load or CPU/Memory hogs. Everything is Linux and it follows a Basic Logic of Name/IP Resolution.
AND It Magically WORKS...
Happy BLOCKING.
..................................................................
Samsung Galaxy S2
Firmware: ICS 4.0.4 XWLPX
ROM: VK ROM 5.4.4
Kernel: Phenomenal 6.1
Modem: BVLP7
MODS: xLOUD,SRS,BRAVIA Engine,ALSA Resampler, Audio Effects Engine
Click to expand...
Click to collapse
I can't root my POS Alcatel fierce 4 but I do have a VPN app
for no root which I can add host files. I assume I just add the
entire zipped folder? That's my only option. The app on the
Play Store is called "Virtual Hosts".

Related

[Q] Blocking Apps from Stealing Personal Information

Personal information theft by apps is out of control!(Iphones as well)
The only Android App I can find that you can set to block your personal info(UID,IMEI,location,ph#,contacts,etc) is Privacy Blocker. But it runs out of memory a lot, and only works on half the programs and doesn't work on odexed files. And you have to select and scan each program individually. Is there a better program that does this automatically? Or something that blocks advertising libraries like admob etc? Ad Away just changes your Host file to block ads.
What about implementing this into a ROM? That would be Great!
!!!!!!
Thank you very very much.
chek this program - LBE Privacy Guard

MoaAB: Mother of All AD-BLOCKING > BLOCKS ADware Malware Spyware Bloatware Ransomware

MoaAB: Mother of All AD-BLOCKING > BLOCKS ADware Malware Spyware Bloatware Ransomware
We can only dream of 'THE' Perfect AD & Malware Blocker...
BUT.....
Dont wait any longer and start your quest in an AD free, Safer & Secure Experience.
Start using MoaAB. DOWNLOAD Right Now.
Update: NEW UPDATE IN PROCESS...
The Purpose of this Project is to make Device CLEANER, FASTER, SMOOTHER & FRIENDLY.
--------------------
The IDEA is to Minimize the ADs... NOT Total Eradication. Respect the Good Developers and there Revenues for Living.
FREEDOM NOTE: My ADBlocking MOD realizes that advertising and revenue is important to OEM/App Developers and this is how they earn money, BUT too much Advertisements are instrusion to privacy (I am also an App Developer but I Really Dont Like ADs). Advertisements are not automatically blocked but users have the choice whether to block or not block by manually Fashing my ADBlocking CWM MOD.
GENERAL KNOWLEDGE: This MOD will Save you CPU Processing used in Advertisement Contents, In-App Ads, Hidden App Call-Back Home Routines, Malware/Spyware Sites, In-App User Data Collection, Definitely... Stupid Garbage from Internet and Precious Bandwidth resulting Extended Battery Life and Money Saved in Internet bills. THINK ABOUT IT.
--------------------
>>> What is a 'hosts' file? What it Does? Whats in it for Me?
The 'hosts' file contains the mappings of IP addresses to host names and loaded into memory (cache) at startup. Android OS checks the 'hosts' file before it queries any DNS servers, which enables it to override addresses in the DNS. This prevents access to the listed sites by redirecting any connection attempts back to the localhost (127.0.0.1), which is a loopback and traffic is dropped instantly (saving your millions of money used by network traffic 2G/3G/4G). Another feature of the 'hosts' file is its ability to block other applications (bogus applications) from connecting to the Internet, providing the entry exists.
'hosts' file is used to BLOCK ADs, BLOCK Banners, BLOCK 3rd Party Cookies, BLOCK 3rd Party Page Counters, BLOCK Web Bugs, BLOCK Web Hijackers, BLOCK Phishing Sites, BLOCK Malwares, BLOCK Spywares, BLOCK Trackers, BLOCK Unauthorized Application connections to web and BLOCK other Malicious activities...
This is not 100% Protection but atleast it takes care of ALMOST ALL OF THE SECURITY ISSUES FACING FROM THE BAD SITES.
For full Security, Use Antivirus or Security Suite from Android Market.
>>> Performance Issue? Will my device run SLOW?
I am using this 'hosts' file from my chilhood days and never had any performance issue to date, Although you might have a little delay in startup for few seconds (but you will not even notice) and then everything will be cool in standby and active mode. I say "Little delay is better than ADs, Malwares and Spywares..."
Please Read this Post for RAM usage
>>> Compatibility?
ANDROID FAMILY: 4.x, 5.1.x, 6.x, 7.x :angel: (5.0.x not supported, android memory leaks)
DEVICE FAMILY: Anything which has 1 GB of RAM and atleast 1.2GHz CPU minimum.
This MOD requires some amount of RAM (4MB - 8MB) and CPU for effective functionality. "Anything below the compatibility specs" might be working But wll be Slow and Laggy. PLEASE DO NOT PM me or POST on this thread for issues if so. I Don't and Won't Support.
WiFi/Mobile: Please disable PROXY to use this 'MOD' else no blocking will happen.
>>> How to install?
Just Copy Paste the 'hosts' file in /system/etc or Import it in some ADBlock App locally or Import in NetGuard. Thats It. ENJOY
>>> What is BLOCKED?
In-App/Web ADs, In-App/Web Trackers, Malware/Spyware Domains, Tracker Cookies, Malicious Call-Back Home App Functions, Malicious 3rd Party Redirection Functions and Possibly Some Level of Virus/Trojan Protection and More...
CAUTION: IMPORTANT NOTE to USERS This is not an APP but A Single file (MASSIVE ), So my packages is not altering any system functions, automating tasks, requiring frequent user interactions or installing/uninstalling system events. This package is not doing anything malicious but just sitting there and speaking/directing where to go or not... thats it. I hope All is Clear :angel: Please do not complain of bootloops, softbricks or hardbricks, i am not responsible
CAUTION: IMPORTANT NOTE to APP DEVELOPERS & AD OWNERS This is not an Interception App or Reverse Engineering Code BUT an Android Standard defined for user configuration. I am trying to make my Device (which i own in terms of Hardware/Software which i Paid for) much CLEANER, FASTER, SMOOTHER & FRIENDLY for general use :angel:. My program will not alter any of the installed App/s or inject any interception code in your App/s :good:. All Request/s and Response/s are handled by OS (Android) layer. In no way to want to hurt the Developer BUT my priority is CLEAN DEVICE. :good:
If anyone (Users or Developers) wants to exclude the domains or sub-domains from this MOD please PM me with possible reasons. I will be happy to help you.
NOTE to USERS: Please Do not post your work in this thread. This is to avoid untested or duplicated or unstable work. You can defenitly share via some file share and PM the work to users OR Please create your own thread.
>>> DISCLAIMER :good:
This 'hosts' file will possible block harmful effects, active and passive intrusion of potential sites or apps but using this also/might block regular site and/or apps. YOU HAVE BEEN WARNED and USE AT YOUR OWN RISK.
I take no responsibility of any losses and damages to your Hardware or your Software component/s caused by this piece of code. You have been given the choice of NOT FLASHING or TO FLASH the ADBlocking CWM and yourself choosen the way to stop the ADs. This MOD might also block regular domains because of the extreme blocking nature. You will also be protected from Malware/Spyware/Bloatware but limited to the extent of updates. YOU HAVE BEEN WARNED :angel: HAPPY AD-BLOCKING
>>> DOWNLOADs For Rooted (ROOT) and Non-Rooted (via VPN) Phone/s.
NEW UPDATE IN PROCESS...
If You are Complaining TOOO MUCH then Please Read this
* Direct Link for ADBlock Apps: "http://adblock.mahakala.is" super credits to
nagpochenpo
* REVERT this MOD and Reset to Stock
Safe & DNS IP for everyones use:
208.67.222.222
8.26.56.26
208.67.220.220
8.20.247.20
Just add the above entries in your DNS settings.
>>> How to Know if this MOD is WORKING???
Go here & Follow instructions http://ads-blocker.com/testing
Public License for ROM and for Auxiliary Work
You can Distribute my MOD with my Permissions. Distribution should include my XDA name 'BSDgeek_Jake' and Link to this 'ADBlocking MOD' thread in your Credits sections/About sections and Properly Visible to Human Eyes. Distribution should be synced with the latest MOD updates or Can be pointed to the MOD alternate download mentioned in this Post or my Profile Page. Please PM me for any queries.
NEW RULE for MoaAB Usage and Sharing:
1. All permissions for shared work is NOW REVOKED except for ROM Developers. Please Re-request.
2. No user is allowed to MIRROR or MAKE a COPY of MoaAB. Request for Permission before making any.
3. Please Do Not FILL my thread Asking for LAST OLD NEW or FUTURE releases. Its a Free Work in my Busy Time. I dont Mind Helping, I Love to, but TOOOOOO MUCH will discourage my work.
4. Please Search the thread before Asking for Questions. Most of are ALREADY answered and resolved. Self Help is the Best.
5. Please use PM to share your Files, Screenshots and Configurations. Don't Post it onto my thread.
6. Please Help me in Keeping MoaAB thread Visually Clean and Searchable.​
And... If You Like my MoaAB MOD... Remember to Press...Thanks button
Thanks for this! If I already have a hosts file with lots of blocked addresses in my /etc and system/etc folders how can I add these?
Thank you for your help
Sent from my GT-I9100 using xda app-developers app
to Obagleyfreer
Obagleyfreer said:
Thanks for this! If I already have a hosts file with lots of blocked addresses in my /etc and system/etc folders how can I add these?
Thank you for your help
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Hi Obagleyfreer,
You can append the hosts file to your '/etc/hosts' either by some terminal program (BetterTerminal) or copy your '/etc/hosts' to your PC and manually append then re-copy over USB.
I strongly recommend to use my version of 'hosts' file over yours due to the fact that it contains updated BLOCKING Data from more than 5 sources. It also contains Custom BLOCKING Data based on my analysis.
Happy BLOCKING.
Thank you for this
I love getting rid of apps and doing stuff manually. I can of course just copy paste this, but I'm trying to learn and acclimate myself to adb, so I don't stress each time I wish to use it for mission critical stuff. If anyone can effortlessly provide the adb commands, I can of course spend a half hour Googling and another hour messing up my syntax, for which I keep my Wakizashi nearby...just in case Seppuku begin pulling me(pun intended).
I know I need to do my time in UNIX and as in all things it will become second nature eventually. With self teaching ala Google, and fear of asking questions and almost certainly being flamed or ridiculed, with a heavy dose of sarcasm by those who've forgotten what it was like being to be a noob. It happens often that the answer to my question was to be found buried in an obscure thread from three years ago, which I failed to retrieve, as my query wasn't phrased just so. (I apologize in advance for my unfair rant, please do accept, it began in an attempt for a little light comic relief, and morphed into a bitter montser) thanks in advance for any help you may be able to provide, or even for just disregarding my vent and not holding it against me. I do feel better for it. I promise to help people all I can out once I've got a solid grip on Unix based CLI
Cheers
Hi.
Thank you very much for your hard work on this hosts file, but could you please also add busbox'x hosts file to into this one.
Because i see now that not all the ad's from installed apps i have installed on my phone are been blocked by your hosts file but they are blocked by busybox.
When I installed this host file, I noticed that it was easily 2x the size of my old host file.
Thanks for all your hard work !!!
Sent from my SCH-I535 using xda premium
comparison
this hosts file sure took hard work to put together. I installed it, but for now I reverted back to ad-away cuz there were many ads in european newspapers 'n crappy stuff. I put it to owner = system cuz I I couldn't put it to owner = root. r-r-r- was set properly. maybe you could feed your hosts into the ad-away project and merge it.
mai77 said:
this hosts file sure took hard work to put together. I installed it, but for now I reverted back to ad-away cuz there were many ads in european newspapers 'n crappy stuff. I put it to owner = system cuz I I couldn't put it to owner = root. r-r-r- was set properly. maybe you could feed your hosts into the ad-away project and merge it.
Click to expand...
Click to collapse
Make Sure You are 'ROOT' (Superuser or SuperSu)
Just open 'Root Explorer' and copy the 'hosts' file to '/etc/' or '/system/etc'. tap and hold on 'hosts' file and tap on 'Permissions'. Set it rw-r-r and Owner to root:root. Reboot and Thats It.
I did that now. still lotsa ads in da newspapers. one was about stupid natural gas from Statoil, Norway. can't have dat crap.
will go back to ad.away
Ok. now I used yaffs explorer to edit file permissions. Works with above settings. Still set ad away active, but with This «hosts»
All ads gone. Nice!
nice! much more than AdAway offers (so far) :good:
Site Blocked
Taringa.net is blocked (esta pagina no deberia de estar bloqueada)
what's the different with AdFree?
lucubrb said:
what's the different with AdFree?
Click to expand...
Click to collapse
Hi, AdFree or any other AdBlock app will block minimum of ads but my 'hosts' file has multiple sources for AdBlocking and it also include custom Malware/Spyware domain based on my analysis.
Currently its a manual job to put 'hosts' file into the '/etc' or '/system/etc' using 'RootExplorer' but soon i will publish CWM to make it automated.
MisterNot said:
Taringa.net is blocked (esta pagina no deberia de estar bloqueada)
Click to expand...
Click to collapse
Taringa.net is a Hybrid Ad domain, so blocked by default. You can remove it manually by editing the 'hosts' file by yourself.
just to inform that it doesn't block adds from tubemate app
Sent from my GT-N7100 using xda premium
FYI, your hosts file blocks all Dropbox and Hotfile links, which is a really bad thing for we xda rom/mod flashers.
I love the idea of a giant hosts file but I had to revert to AdFree
Thanks for the work though
Thanks for this!
.:Sent from the Hellfire Galaxy of S & 3:.
---------- Post added at 10:44 AM ---------- Previous post was at 10:43 AM ----------
agriff said:
FYI, your hosts file blocks all Dropbox and Hotfile links, which is a really bad thing for we xda rom/mod flashers.
I love the idea of a giant hosts file but I had to revert to AdFree
Thanks for the work though
Click to expand...
Click to collapse
Hmm that will need to be edited for sure..
.:Sent from the Hellfire Galaxy of S & 3:.
agriff said:
FYI, your hosts file blocks all Dropbox and Hotfile links, which is a really bad thing for we xda rom/mod flashers.
I love the idea of a giant hosts file but I had to revert to AdFree
Thanks for the work though
Click to expand...
Click to collapse
New Updated 'hosts' file is now uploaded excluding Popular File Sharing Sites.
ENJOY :good:
Just wanted to say thanks for putting all those hosts together, works great!

[CWM]AD Block Host [04June2013]

Credits: BSDgeek_Jake Hello Friends!​
# What is a 'hosts' file? What it Does? Whats in it for Me?
The 'hosts' file contains the mappings of IP addresses to host names and loaded into memory (cache) at startup. Android OS checks the 'hosts' file before it queries any DNS servers, which enables it to override addresses in the DNS. This prevents access to the listed sites by redirecting any connection attempts back to the localhost (127.0.0.1), which is a loopback and traffic is dropped instantly (saving your millions of money used by network traffic 2G/3G/4G). Another feature of the 'hosts' file is its ability to block other applications (bogus applications) from connecting to the Internet, providing the entry exists.
'hosts' file is used to BLOCK ADs, BLOCK Banners, BLOCK 3rd Party Cookies, BLOCK 3rd Party Page Counters, BLOCK Web Bugs, BLOCK Web Hijackers, BLOCK Phishing Sites, BLOCK Malwares, BLOCK Spywares, BLOCK Trackers, BLOCK Unauthorized Application connections to web and BLOCK other Malicious activities...
This is not 100% Protection but atleast it takes care of ALMOST ALL OF THE SECURITY ISSUES FACING FROM THE BAD SITES.
For full Security, Use Antivirus or Security Suite from Android Market.
# Performance Issue? Will my device run SLOW?
I am using this 'hosts' file from my chilhood days and never had any performance issue to date, Although you might have a little delay in startup for few seconds (but you will not even notice) and then everything will be cool in standby and active mode. I say "Little delay is better than ADs, Malwares and Spywares..."
# Compatibility?
OEM: Samsung, HTC, Sony, LG, Google, Motorola, Huawei, ZTE, Almost ALL OEM...
ANDROID FAMILY: 2.2.x, 2.3.x, 3.x, 4.0.x, 4.1.x, 4.2.x
# How to install?
Just Flash in Clockworkmod Recovery (CWM) and Thats It. ENJOY
Download with Dev-Host
thank for share. But not need post a new thread in here because we will have it in Android Software And Hacking General. It will be search by user.
P/s: You edit file zip? you credit for he and upload your host! It as is you bring and that it is of you. Please if want create new thread you should create link to Original Post to help any people to have update from OP's:good:
You can also use adaway from fdroid free software market
Wow, giving credits is one thing, but copypasting and mirroring is another...
And you receive thanks for sth another guy did... We do not need this type of repost
...
Anyway, editing the hosts file is much better than using AdAway or AdBlock...
nice share
Sent from my GT-I8160 using xda premium

[GUIDE][COLLECTION] All About Ad-Blocking

Introduction
Welcome to the thread which is dedicated to the numerous ways of how to block advertisements on your Android device. This guide will show you different ways how users can enjoy an ad-free Android experience, both for unrooted as well as rooted users. In general, this thread will give you an overview about apps, whose purpose is to block ads within apps and even web browsers.
Searching for keywords like "ad blocking" on XDA will result in many different threads with numerous aspects. But I found the lack of a centralized collection quite annoying, so I decided to start this thread to provide users with the latest possibilities to effectively block advertisements on their Android device. There is no way I am going to say that this is the "Ultimative Ad-Blocking Thread", as this is (and maybe always will be) rather an evolving than a finished topic. As each user has its own personal preferences, this is not a mandatory setup, but a guide for users which are new to the subject as well as for users, that have experience but nevertheless want to learn about other possibilities.
Basics
So let's start with some basics. There are different ways how to block ads. The most popular one is the use of so-called hosts files. Basically, this is a local file, containing a list of web addresses, which can’t be connected to from your device, so that all content (for example ads, banners, 3rd party Cookies, 3rd party page counters, web bugs and even most hijackers) from those addresses will be blocked. This way no advertisement content originating from those addresses will be shown. For more information about host files, visit Blocking unwanted connections with a hosts file.
Important: if you use a browser with data compression feature (like Chrome or Opera for example), you have to turn off this feature within the browser, otherwise the ad-blocking by using the host file will not be reliable any more. This issue arises from the fact that all data traffic is redirected over a compression server, which will result in the fact that all data – content and ads – are coming from those servers instead of the original ones, whose names are included in the host files.
So much text! Where are the apps?
Here they are. I have set up four categories for you:
Root required (check post #2) – apps that require a rooted device
No root required (check post #3) – apps that don’t require a rooted device
private DNS (check post #4) – utilizing Androids private DNS function
Browsers with ad-blocking methods (check post #5) – ad-blocking web browsers
Please note:
I have just started to fill this thread with information. If you are interested, but not satisfied with the provided information, please consider re-visiting this thread after some days and check the change log.
Disclaimer:
I am not responsible for bricked/broken devices due to modifications you decided to apply on your device. Furthermore, none of the linked apps in this thread are my own work, so I am not able to include more features or fix bugs. If you feel the need to ask for features, please visit the corresponding app’s thread or web page.
Credits:
delta_foxtrot2 - for AdFree
mrRobinson/PerfectSlayer - for AdAway
Team AdGuard - for AdGuard
M66B - for NetGuard
BSDgeek_Jake - for MoaAB - Mother of all Ad-Blocking
Mozilla - for Firefox Browser
arnaud42 - for Kiwi Browser
Root required
AdFree for Android (XDA thread)
AdFree is a simple app for Android operating system that modifies the system hosts file to redirect known advertising and tracking hostnames to local host.
The current version (v0.9.9) ships with mongoose, a small webserver, and a copy of tcpdump, so you can log DNS requests, this allows you to discover new hostnames not currently blocked.
The web interface at http://adfree.odiousapps.com/index.php allows you to configure white and black lists from your desktop manually (requires a free account at AdFree).
It will block all ads within apps and web browsers. If you have issues, you have to open AdFree and enable "local web server" as well as "start TCPdump". This way you can track connections which have been blocked by checking the AdFree log file (AdFree -> Settings -> show TCP host names) and add them to your personal whitelist manually via web interface (link is given above).
Works for mobile connection as well as for WiFi connection.
required Android version: 2.1+
advantages: blocks all type of ads
disadvantages: setup of a personal whitelist/blacklist is not possible via the app itself
AdAway (XDA thread)
AdAway is an open source ad blocker for Android using the hosts file. AdAway lets you select your own sources of hosts files. In addition, you can add exceptions to your whitelist from within the AdAway app if an app is not working when specific hosts are blocked or define extra hostnames in your own Blacklist.
One big issue: AdAway will not work reliable when on mobile networks like 3G. You can deactivate that proxy by going to your selected APN (on Android 4: Wireless and networks -> More… -> Mobile Networks -> Access Point Names) and remove the value in the proxy field.
required Android version: 2.1+
advantages: properly blocks ads based on hosts file
disadvantages: does not work reliable on mobile networks with default settings
MoaAB - Mother of all Ad-Blocking (XDA thread)
Mother of all Ad-Blocking (MoaAB) is an ad blocker for Android which utilizes the hosts file. Simply flash it through recovery and most apps are blocked. However, this method requires a custom recovery to be installed on your device (and each update has to be flashed again through recovery). Furthermore, MoaAB requires a device with a minimum RAM of 2GB (MoaAB uses up to 40MB of RAM while you use your device) as well as a CPU with at least 1.6GHz to run smoothly. On devices that do not fulfill this minimum requirements, it may work but it will make your device slow and laggy.
required Android version: 4.2+ (Note: 5.0.x is not supported (memory leak)! Check the MoaAB XDA thread for more information.)
advantages: properly blocks most ads based on hosts file
disadvantages: a custom recovery (CWM, TWRP) is required to flash MoaAB (as well as each update); causes performance issues on older devices
No root required
Adguard - No Root Ad Blocker (XDA thread)
Adguard is a tool designed to make web surfing of Android users more comfortable and safe, and one of the best parts: no root is required. Adguard establishes a local VPN connection to connect to the internet, by which all advertising content is blocked. In addition, Adguard sets up a firewall to control in- and outgoing traffic.
There is a free trial version available as well as a pro version. The free trial version blocks ads in browsers, whereas the pro version (which you have to purchase after trial period in order to get Adguard working again) blocks ads systemwide (browsers + apps).
required Android version: 4.0.3+
advantages: blocks ads in apps as well as some browsers
disadvantages: requires a VPN to constantly run in the background -> burden on the system; you also need to trust the provider of the VPN
AdAway (XDA thread)
AdAway is an open source ad blocker for Android using the hosts file. AdAway lets you select your own sources of hosts files. In addition, you can add exceptions to your whitelist from within the AdAway app if an app is not working when specific hosts are blocked or define extra hostnames in your own Blacklist.
One big issue: AdAway will not work reliable when on mobile networks like 3G. You can deactivate that proxy by going to your selected APN (on Android 4: Wireless and networks -> More… -> Mobile Networks -> Access Point Names) and remove the value in the proxy field.
required Android version: 2.1+
advantages: blocks ads in apps as well as browsers; open-source
disadvantages: main purpose is achieved by setting up a local VPN (so you can't use another VPN in parallel), does not work reliable on mobile networks with default settings
NetGuard - No-root firewall (XDA thread)
NetGuard is a new open-source application, developed by XDA Recognized Developer M66B, which you might know for his famous XPrivacy modul for Xposed. NetGuard is a lightweight and easy to handle firewall, and one of the best parts: no root is required. NetGuard establishes a local VPN connection to connect to the internet, by which the user can define which applications should be allowed to access the internet. In addition, NetGuard can be used to download host files to block ads (GitHub version only, don't use the one from Play Store).
required Android version: 4.0+
advantages: blocks ads in apps as well as browsers; open-source
disadvantages: main purpose is achieved by setting up a local VPN - network traffic becomes somewhat slower (should not be noticeable during daily usage); you can't use another VPN in parallel
personalHTTPproxy (XDA thread)
personalHTTPproxy is an Android app that can filter all your HTTP (and of course HTTPS) traffic to block ads - no root needed. The app is open source software and is free of charge. It loads one or more hosts filter to block ads, thus all HTTP(S) protocol traffic will be filtered. This is very efficient when ads use the HTTP(S) protocol, but embedded ads mostly use other methods such as AdMob or AdSense, so they can not be blocked by personalHTTPproxy.
required Android version: 2.3+
advantages: blocks ads that use the HTTP(S) protocol
disadvantages: does not block ads that use other methods than the HTTP(S) protocol
Androids "private DNS" option
Since Android 9, Google added the option to set your own private DNS. This option can be found by following the below listed path.
Settings - Network - Advanced - Private DNS
(Please note: this path is valid for AOSP based ROMs and it might vary for other custom ROMs or OEM ROMs. Please use your preferred search engine to get more information about where to find this option on your ROM)
Using a custom DNS server has a lot of advantages. You can circumvent so-called DNS-based blocking, which will see an increased usage in the future in some countries, based on their corresponding laws which will force telecommunication providers to block specific webpages based on the providers DNS server. In addition, some independent DNS providers have their own blacklist, which include well-known ad sources. So by setting up your own private DNS source within Androids settings, you can block ads (and also malware) systemwide! Wow, that's pretty cool, eh? And you know what? YOU DON'T NEED ROOT OR A VPN RUNNING ALL THE TIME
But how does it work? Well, that's quite easy. Network adresses, which are on the DNS blacklist of the provider, can't be reached at all, similar to what blocking by utilization a hosts file does. If you need further infomation, please check this link for example.
There are numerous DNS servers out there which offer ad blocking, for example AdGuard, Dismail or DNSforge. If you are interested in one, please do your reserach and chose one.
required Android version: 9+
advantages: systemwide blocking ads/malware on DNS-base; no additional app or even root is required
disadvantages: no possibility to define your own personal block list (but this shouldn't really be an issue)
Browsers with ad-blocking methods
Lightning Browser (XDA thread)
Lightning Browser is an open-source lightweight Android web browser dedicated to delivering a high-quality experience. It does block all apps within the app itself, but you need to purchase the pro version for this. Nevertheless, this one does not require root, so if you are worried about your device's warranty but want an ad-free experience while surfing the web, give Lightning a try.
required Android version: 4.0+
advantages: does not require root; open-source based web browser
disadvantages: requires paid pro version to blocks ads within the browser itself; no ad-blocking in other apps; last update in late 2019 (as of April 2021)
Firefox Browser (Play Store link)
Firefox Browser is an open source web browser which most people know as a web browser for PC's. But the version for Android does not lack any important functionality, it even offers the possibility to install plugins, most important the uBlock Origin plugin. This plugin offers a large variety of adblocking possibilities (and also malware blocking) as it is able to utilize custom hosts files. If you simply want a easy-to-use ad blocker, just install the plugin and enable the ad blocking in its settings and you are done - ads are blocked and you can enjoy your web browsing.
required Android version: 4.0.3+
advantages: does not require root; possibility to use customized hosts file; blocking of malware
disadvantages: no ad-blocking in other apps
Kiwi Browser (XDA thread)
Kiwi Browser is an open source web browser based on Chrome. Beside the possibility to block ads natively, it even offers the possibility to install plugins, most important the uBlock Origin plugin. This plugin offers a large variety of adblocking possibilities (and also malware blocking) as it is able to utilize custom hosts files. If you simply want a easy-to-use ad blocker, just install the plugin and enable the ad blocking in its settings and you are done - ads are blocked and you can enjoy your web browsing.
required Android version: 4.1+
advantages: does not require root; possibility to use customized hosts file; blocking of malware
disadvantages: no ad-blocking in other apps
Changelog
2021-04-09
removed Xposed modules section and replaced it with "private DNS" section
removed some outdated browsers
added Kiwi Browser
added AdAway (VPN-based) to non-root section
older changelog:
2016-09-02
removed AdBlocker from the list of Xposed modules, as it has been banned on XDA (warez app)
added Atlas Web Browser to the list of ad-blocking browsers
added Firefox Browser to the list of ad-blocking browsers
2016-06-24
added Slimperience Browser to list of ad-blocking browsers
2016-05-17
added Opera Mini to list of ad-blocking browsers
2016-04-04
removed Adblock Plus for Android from list of methods which don't require root
removed Adblock Browser for Android from list of ad-blocking browsers
added AdClear to list of methods which don't require root
added personalHTTPproxy to list of methods which don't require root
updated Cornowser's description
2016-03-23
added AdBlocker to list of methods which require root
2016-03-09
added NetGuard to list of methods which don't require root
added Cornowser to list of ad-blocking browsers
2015-12-21
added AdBlocker to list of ad-blocking Xposed modules
2015-11-23
added Naked Browser to list of ad-blocking browsers
2015-10-22
added Adguard - No Root Ad Blocker to list of methods which don't require root
2015-10-14
added MoaAB to list of methods which require root
2015-10-07
added UC Browser to list of ad-blocking browsers
2015-10-06
added list of ad-blocking browsers
2015-10-05
opening of this thread
Great work buddy!Subscribed
Tapped from my ❶+❷
Updated the thread, especially the section for ad-blocking browsers.
Thread updated (check changelog for more information).
Thread updated (check changelog).
This is a really well made guide. Thank you OP:
Suggestion, possible to add the wonderful "naked browser"?
kongha said:
This is a really well made guide. Thank you OP:
Suggestion, possible to add the wonderful "naked browser"?
Click to expand...
Click to collapse
Thank you for the suggestion. Will add it when I return from vacation.
Thread updated (check changelog).
orville87 said:
No root required
Adblock Plus for Android (Adblock Plus for Android web page)
Adblock Plus for Android is designed to work on all devices, no root is required. Adblock Plus establishes a VPN connection to connect to the internet, by which all advertising content is blocked.
Download the .apk file from the above linked official web page and install it (make sure Unknown Sources for installation are enabled). Open Adblock Plus and activate filtering. This way it will all advertisements while using WiFi connection. To use it with mobile network, one has to add a proxy to your APN manually.
Go to System Settings -> Network Connections -> More networks -> Mobile Networks -> Access Point Names. Copy all settings from your default APN, add a new proxy and paste all settings from your default APN. Now add the following entries:
Proxy: localhost
Port: 2020
Now activate the newly created proxy and Adblock Plus should work on mobile network, too.
Click to expand...
Click to collapse
Can you write a step by step guide for Adblock Plus settings for mobile data network? Thanks!
KT3 said:
Can you write a step by step guide for Adblock Plus settings for mobile data network? Thanks!
Click to expand...
Click to collapse
Well, it should be quite easy:
Go to System Settings -> Network Connections -> More networks -> Mobile Networks -> Access Point Names. Copy all settings from your default APN, add a new proxy and paste all settings from your default APN (if you don't know how to copy the settings from your default APN, just procede with the next step by entering the proxy and port info to your current APN). Now add the following entries:
Proxy: localhost
Port: 2020
Open the three dot menu on top right and save the configuration. You can always revert back to your default APN settings by clicking on "reset settings".
I have never done this by myself, as I have a rooted device and use AdFree or AdAway, so please be aware that I do not take any responsibility for what you do. If you are unsure, check the official AdBlock Plus for Android web page, where you can find a configuration manual. Another thread for mobile network settings you can find here on XDA.
might be a silly question..
so i am confused, if i am using adfree or adaway will i see ads on my chrome or other browsers?
reddead66 said:
might be a silly question..
so i am confused, if i am using adfree or adaway will i see ads on my chrome or other browsers?
Click to expand...
Click to collapse
As was said in the description of AdAway and AdFree, both apps modify the host file of your device. All access to the web pages on this host list will be blocked, both in apps as well as in internet browsers. So basically you should have an ad-free Chrome browser. I would recommend to install one of the apps and check it for yourself if you have a rooted device.
reddead66 said:
might be a silly question..
so i am confused, if i am using adfree or adaway will i see ads on my chrome or other browsers?
Click to expand...
Click to collapse
orville87 said:
As was said in the description of AdAway and AdFree, both apps modify the host file of your device. All access to the web pages on this host list will be blocked, both in apps as well as in internet browsers. So basically you should have an ad-free Chrome browser. I would recommend to install one of the apps and check it for yourself if you have a rooted device.
Click to expand...
Click to collapse
If you are using the data saver feature in Chrome or Opera you will still see ads when using a hosts file. Data Saver has to be disabled for a hosts file to work 'properly.' With Chrome's data saver enabled all of the data (including ads) for the website you are viewing is coming from Google's compression servers. Opera uses their own servers, same principle.
wantabe said:
If you are using the data saver feature in Chrome or Opera you will still see ads when using a hosts file. Data Saver has to be disabled for a hosts file to work 'properly.' With Chrome's data saver enabled all of the data (including ads) for the website you are viewing is coming from Google's compression servers. Opera uses their own servers, same principle.
Click to expand...
Click to collapse
Thanks for reminding me about this issue. When reading the thread again, I got the feeling that I missed something and you just gave me the answer :good:
orville87 said:
Thanks for reminding me about this issue. When reading the thread again, I got the feeling that I missed something and you just gave me the answer :good:
Click to expand...
Click to collapse
You're welcome! I've always used a hosts file on mobile and desktop, been working on it for years. It looks like some ads are blocked, some aren't and I see image placeholders when trying to use a hosts file with the data saver enabled. Without data saving enabled I never see image placeholders and rarely ever see an ad in Chrome or Opera.

NoRoot firewall circumvention

I really hate the modern world.
Anyhow I have been running Noroot firewall and some form of blacklist browser for years. "Smart"phone are practically unusable without. How have I seen the internet mostly devolve as it develops. Your parents are right Nostalgia is not a over fond memory in a fog of the past but a realistic time where devices had real controls and monitoring. Seems we have supplemented privacy and efficiency for ShINY POLIsHEd APPS so bloated and malfunctional.
Nuff ranting.
I feel like I am being fooled into a somewhat false sense of security by noroot. I mean it is published by 'greyshirts'. Is that a word play on 'whitehats'?
Do you see I can deny access to several apps with varying results. For instance:
Instagram is now unaffected by noroot.
Snapchat will continue to try to access servers and refuse to upload images but texts and some data still pass.
Some games like World of Warships +bump. Work Flawlessly despite no access.
And a whole host of other apps will not function, ALTHOUGH they can still push notifications. I do not understand Java or Android well enough to know how or why. This device is NOT rooted. My experience is minimal with a couple of roots some adb logging thats it very rusty
Somebody could please explain ?
If somebody would train me I will gladly make an OS that has complete and transparent root level firewall and IP logging.
It seems the only way to steal back the internet from the data logging companies and advertisers and the big colorful monstor itself.
Sorry iphone users you are probably ****ed sideways in your blissful ignorance.
Whatthetrax said:
I really hate the modern world.
Click to expand...
Click to collapse
Me too.
A ( proxy ) firewall basically is a piece of software that monitors incoming and outgoing network transfer and gives you the chance to either block or allow the network transfers by setting related filters. IMO with regards to outgoing transfer on Android no extra ( proxy ) firewall software is neeeded at all, you define what IPs are to be blocked via Android's hosts file.
The NoRoot Firewall app you mentioned simply substitutes the make-use-of Android's hosts file - what only can be kept up-to-date by a root user, nothing else. My Android's hosts file has over 14,000 entries.
The only advantage why to use NoRoot Firewall app I can see is possibilty you can allow or deny only specific ( outgoing ) connections on a per app basis.

Categories

Resources