Rooted N1 and adfree used to work great. Updated host file and noticed it no longer works with any browser. Anything available that works to block ads?
Sent from my Nexus One using XDA App
I use this hosts file method. Works fine for me.
It still seems to be working for me. Have you tried rebooting your phone?
Big_O said:
Rooted N1 and adfree used to work great. Updated host file and noticed it no longer works with any browser. Anything available that works to block ads?
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
The Android system still uses the hosts file for DNS lookups before using your internet connection's DNS server. Therefore ALL apps installed on the system will respect the entries placed in the hosts file. The only way around this is if ads in apps used actual IP addresses rather than hostnames or websites with ads used links with IP addresses pointing to the ads rather than resolvable hostnames.
You can't block or redirect an IP address via the hosts file (this would be reverse DNS), it only handles hostname resolution.
I re-rooted the N1 and re-installed adfree. It's working again. Noticed the install edited the system host file automatically without the need to adb or manually edit anything. Adfree is excellent and worth rooting just for this app.
Related
To those of you who use some sort of adblocking in ICS, have you noticed any oddities?
Either I use a ROM that integrates an adfree hosts file or if I use an app that creates a hosts file (such as AdAway), I have found that ads are blocked when using wifi but not when I'm using 3G.
I thought it was ICS browser but I found that it was true for most apps. For instance, the ad banner in ScoreMobile app is gone on wifi but it shows up when I'm on 3G. It's as if the phone is ignoring the hosts file when on 3G.
But now.. I installed Opera and to my surprise, ads are being blocked while on 3G and no, Opera Turbo is not enabled so the traffic is not being rerouted elsewhere.
So I found this inconsistency a little odd. As far as I remember, every ICS rom I've tried so far as been this way. I'm currently using AOSP+ though. Anyone else experience this?
I just installed AdFree, updated the host file, and rebooted. It seems too be blocking ads just fine on both WiFi and 3G.
mattkroeder said:
To those of you who use some sort of adblocking in ICS, have you noticed any oddities?
Either I use a ROM that integrates an adfree hosts file or if I use an app that creates a hosts file (such as AdAway), I have found that ads are blocked when using wifi but not when I'm using 3G.
I thought it was ICS browser but I found that it was true for most apps. For instance, the ad banner in ScoreMobile app is gone on wifi but it shows up when I'm on 3G. It's as if the phone is ignoring the hosts file when on 3G.
But now.. I installed Opera and to my surprise, ads are being blocked while on 3G and no, Opera Turbo is not enabled so the traffic is not being rerouted elsewhere.
So I found this inconsistency a little odd. As far as I remember, every ICS rom I've tried so far as been this way. I'm currently using AOSP+ though. Anyone else experience this?
Click to expand...
Click to collapse
mattallica76 said:
I just installed AdFree, updated the host file, and rebooted. It seems too be blocking ads just fine on both WiFi and 3G.
Click to expand...
Click to collapse
yup, been using adfree since the moment i updated to ics. works flawlessly.
Well, I was able to figure out what the issue was. It had nothing to do with the ROM or kernel. So here it is for future reference if anyone else comes upon this.
It was actually my wireless carrier using a proxy on 3G that, for some reason, would bypass the hosts file. All I did was delete the proxy via APN settings and all is well.
Is there any good ad blocking software that runs at a browser level? I've used adblock but it runs as a proxy and can stop some apps from accessing the internet.
Sent from my SM-T705 using Tapatalk
try AdAway, it's block ad in every app.
or use ublock in firefox, to block only for the browser.
and Ghostery too, works well . Also try bluehell firewall addon <- Both firefox Andriod.
Thanks guys I'll give these suggestions a try
Sent from my SM-T705 using Tapatalk
Another AdAway fan...
Maybe Adblock Browser? https://adblockbrowser.org/
but I still love Chrome though
AdAway uses hosts file, so it's still a system level software
edison0354 said:
AdAway uses hosts file, so it's still a system level software
Click to expand...
Click to collapse
Managing our own hosts file is the best solution IMO. You have no control over a proxy. #TrustOrPray
AdAway FTW!!!
There is no widely used Ad blocker other than AdAway ?
Emerald Core said:
There is no widely used Ad blocker other than AdAway ?
Click to expand...
Click to collapse
uBlock, Adfree...
With AddAway some apps didn´t work anymore in my phone .
Nachtwesen2 said:
With AddAway some apps didn´t work anymore in my phone .
Click to expand...
Click to collapse
AdAway is ONLY a user interface to manager your hosts file. This app doesn't block anything.
Check the XDA thread or Github to learn how to use it.
I use Adfree.
It blocks ads by adding the hosts to the local hosts file.
This method blocks the advertisements in all apps + browser
Sounds interesting. What host files do you need to implement to get add-free apps with adaway?
luetage said:
Sounds interesting. What host files do you need to implement to get add-free apps with adaway?
Click to expand...
Click to collapse
You only need Adaway: it is an interface, which unlike the other apps, does not waste your battery. It gets host sources from 4 respectable internet sites that get updated regularly. It also lets you add your own sites. It is so effective that Google has expelled it from its app store. And it is open source: you don't want to give root access to a closed source app...
are there Apps to block just ads on selected sites? Because I don't want to block all ads from all sites. I just want to block these sites, wich opens 20x Tabs by one click.
[email protected] said:
I use Adfree.
It blocks ads by adding the hosts to the local hosts file.
This method blocks the advertisements in all apps + browser
Click to expand...
Click to collapse
I can't find Adfree on Google play. Is it allowed only for some countries?
Google Play removed all ad-blocking apps. You can search here at xda-developers for AdAway and AdFree.
EscapeMaster said:
are there Apps to block just ads on selected sites? Because I don't want to block all ads from all sites. I just want to block these sites, wich opens 20x Tabs by one click.
Click to expand...
Click to collapse
A hosts file blocks domains so the ad/domain/IP "X" will be blocked on any website.
is there any app is better than AdAway ?!
Amer Alhusseini said:
is there any app is better than AdAway ?!
Click to expand...
Click to collapse
Why do you need something else?
Guys,
Loving my Nord, only had for a few days and not rooted yet, so using Nord VPN to try and block Chrome ads.
However, despite it working flawlessly on other devices, Nord just won't block ads on any site on my OPN.
I'm using the latest apk from Nords website, and got Cybersec enabled. Any ideas??
Nope but in case you want to try something else, I am using dns66 and that works perfectly. I usually root and use adaway. But I wanted to try a non root solution at least untill I decide to root.
Blokada works as well without root
Thanks both.
I usually root and use Adaway too. But I'm a paid Nord VPN subscriber and really would have expected it to work as advertised, but seems to block absolutely nothing just now.
nstirton said:
Thanks both.
I usually root and use Adaway too. But I'm a paid Nord VPN subscriber and really would have expected it to work as advertised, but seems to block absolutely nothing just now.
Click to expand...
Click to collapse
Have you enabled "private dns" on the phone? It might override the adblocking features of Nord VPN. Usually a lot of adblocking blocks by mapping for instance ads.facebook.com to 127.0.0.1 via DNS. But if you enable private DNS on the phone it's not using Nord VPNs DNS but the private DNS supplier via https.
Thanks for the tip, but no not using a custom DNS.
I guess on other phones I've not relied on the VPNs ad blocking abilities as I've always been rooted using Adaway.
Maybe it's just really bad at blocking ads - ie none at all?!
So, for what it's worth, finally have this fixed....
Whilst I hadn't set up a private / custom DNS, it seems that since I copied over settings from my previous phone (PH-1 R.I.P.) there WAS a redirect in place. I'd only checked DNS within the VPN, not on the phone.
So, VPN active and ads gone!
Hey,
I was wondering why my LAN firewall reports such a lot of blocked querys from my mobile phone (Pixel 3 with 06/2021 patches) to ad domains from Google, even I've installed AdAway in root mode.
I t seems that AdAway / the local hosts file works in generally. When I try to open e.g. ad.doubleclick.net in Firefox I'm getting the AdAway blocked page.
But it looks like that one or more system/Google processeses ignoring the file. Otherwise I should not see any queries from my phone to the original IP address of the domain in my application firewall.
Does anybody knows if this is a known behaviour/issue?
Jas
OP 8T phone I use for company work, can't root. Is there a way to replace the hosts file with a larger, modified one to block all the spam advertising when browsing? or an Android FireFox add-in that blocks them?
Phone is original unlocked 8T (no TMo bloatware), with TMo 5G SIM.
TIA
No way to replace hostfile without root as far as I know.
Wisiwyg said:
OP 8T phone I use for company work, can't root. Is there a way to replace the hosts file with a larger, modified one to block all the spam advertising when browsing? or an Android FireFox add-in that blocks them?
Phone is original unlocked 8T (no TMo bloatware), with TMo 5G SIM.
TIA
Click to expand...
Click to collapse
Use DNS66 - see https://forum.xda-developers.com/t/app-5-0-dns66-open-source-host-ad-blocker-without-root.3487497/
Thank you for the suggestion of DNS66. I'll pass.
Couple of reasons... It isn't found in PlayStore, you have to side load outside of 'protected' apps. Also, it functions as a private DNS, routing all lookups through a DNS service that resides.... somewhere.
I've found another possible way by using ADB and Android Tools, pull/push files. But don't know if I need to unlock to do this.
Change to any dns with adblocking like dns.adguard.com by setting private dns in android settings.
Wisiwyg said:
Thank you for the suggestion of DNS66. I'll pass.
Couple of reasons... It isn't found in PlayStore, you have to side load outside of 'protected' apps. Also, it functions as a private DNS, routing all lookups through a DNS service that resides.... somewhere.
I've found another possible way by using ADB and Android Tools, pull/push files. But don't know if I need to unlock to do this.
Click to expand...
Click to collapse
Hello
Did you find a way to edit the host file without root on OnePlus 8t ?
Thank you in advanced
you could use surfboard or clash for android to modify hosts ,but it need use VPN
You can use AdAway in VPN mode or
install Ublock Origin Firefox plugin or
use private DNS as suggested by @Rootk1t