yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] User013:
I installed Adblock plus for android but app is just eating ram and not blocking ads. This is much better solution. From time to time i still have some ads. Can i block them by adding urls in host file using notepad? I don't want to mess up something.
[Android Software/Hacking General [Developers Only]] FlanjeUK:
I think you need Notepad++

So yes you can, it won't mess anything up if you do it correctly
[Android Software/Hacking General [Developers Only]] Sir_gpm:
What is the right step to install?.

Enviado desde mi Nexus 4 mediante Tapatalk
[Android Software/Hacking General [Developers Only]] sonwon:
I'll 2nd NotePad++
[Android Software/Hacking General [Developers Only]] tcat007:
Great job and thanks! I just added "http://adblock.mahakala.is/hosts" to Adaway and had no problem, only took about a minute to merge. I now get no ads in 1weather! I may buy the app anyway once I decide to keep it.
[Android Software/Hacking General [Developers Only]] duyz:
u
[Android Software/Hacking General [Developers Only]] applefruit:
Am I right to assume that this method will only slow down the boot up time by a little bit but will not slow down the normal usage at all?
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
you are so true.

transported frm i9500 AOSP AICP
[Android Software/Hacking General [Developers Only]] caodecaca:
problem

i can´t upload videos to youtube....
[Android Software/Hacking General [Developers Only]] nafeasonto:
This is weird, I flashed a new firmware, and even MoaAB or ADAway, ads are getting through everywhere. It's like the phone is not using the HOSTS file whether on WIFI or normal Cell data.

Anyone know why this is?
[Android Software/Hacking General [Developers Only]] caodecaca:
Me too

Sent from my Note3
[Android Software/Hacking General [Developers Only]] smohanv:
Thanks. It works.

I tried adfree, adaway... nothing works with my rooted Moto X (XT1052)....

After flashing this, i do not see in app ads. Thanks again.
[Android Software/Hacking General [Developers Only]] Bec de Xorbin:
I went through the file, especially checking Finnish hosts. Everything seemed fine except kolumbus.fi. Kolumbus is a brand of big Finnish telecommunications company Elisa Oyj so blocking it may potentially do great harm to Finnish users.
[Android Software/Hacking General [Developers Only]] blade_:
thanks for this .i need to flash again every new version to work?or after update my rom?
[Android Software/Hacking General [Developers Only]] androiduser44:
if you update your rom for sure you have to flash again
[Android Software/Hacking General [Developers Only]] thermalboyz:
Same here, but removed the "uploads.gdata.youtube.com" on hostfile will fix it.
[Android Software/Hacking General [Developers Only]] ziloh:
I couldn't flash it with twrp, any solution?
[Android Software/Hacking General [Developers Only]] SecUpwN:
[MENTION=4877037]BSDgeek_Jake[/MENTION], how about an App for MoaAB? ;)
[Android Software/Hacking General [Developers Only]] :
Unzip it, take the hosts file. Paste to /system/etc, set perms to rw-r-r and set owners to root:0 root:0. Reboot.
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
as of now, it's a no no. the purpose of lite and friendly use will be defeated.

transported frm i9500 AOSP AICP
[Android Software/Hacking General [Developers Only]] tcat007:
I uninstalled Adaway, and just using this host now. Deleted "f.chtah" since pictures in some of my emails (from Randalls.com) were not showing. Only ad that bothers me now is on Foreca Weather. I like their widget, but may not be worth using because of the ads (and don't want to pay).
[Android Software/Hacking General [Developers Only]] Hecke92:
+1

Any advice?
[Android Software/Hacking General [Developers Only]] SecUpwN:
Great project, [MENTION=4877037]BSDgeek_Jake[/MENTION] - my HTC ONE loves it! I uninstalled MinMinGuard to switch to MoaAB, but strangely I noticed that an update of MinMinGuard has just been released on the Xposed Module Rpository of MinMinGuard. If I'm not mistaken, this was not the first time the App had been updated after its cancellation. Does anybody know what's going on? I just wrote a PM to [MENTION=4981793]FatMinMin[/MENTION], let's see if and what he answers..
[Android Software/Hacking General [Developers Only]] nodnarb91:
I'm getting the same problem. I flashed the latest one from the 20th several times and I still see ads :(
[Android Software/Hacking General [Developers Only]] s--c:
I still see a few ads. add them to the host file if they bother you :)
[Android Software/Hacking General [Developers Only]] VolkS7X:
Installed it, seems to do what it's supposed to... But I have also noticed a fair increase in lag. I can't tell why, but it just seems so - apps take longer to open, UI is less smoother... Could it be because of all the extra stuff happening in the background because of this script? Anyways, I've uninstalled it for now, as I can't stand having a laggy phone.

If you decide to look into this, I'm using an S5 running the latest version of PhoeniX ROM.
[Android Software/Hacking General [Developers Only]] FlanjeUK:
I only have an S4 (running a very slim SlimKat) and I use this host file plus 13 others with AdAway and have never noticed any increase at all in lag, it must be something else...
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
this MOD will not slow down things except for boot time. something else might be killing the device.

transported frm i9500 AOSP AICP
[Android Software/Hacking General [Developers Only]] s--c:
Iv tried to this mod on several devices no slow down. I thought it did once however I took away adaway and phone run faster/smoother. Also with boot time no effect. Long a you have a newish phone no you'll noticed with this mod. It just works. ;).
[Android Software/Hacking General [Developers Only]] Pablitooos:
I've tried adfree and adblock plus but they didn't really work for me. I used to use adaway but miui recognize it like a danger app, so i installed this mod. Hey, it's really work! Thank you so much, great work :) tested on miui 4.5.30 and it work perfectly. Just with google chrome ads are still alive. Is it normal? And another thing...is it possible that it causes some reboot when network is set on 2g?
[Android Software/Hacking General [Developers Only]] s--c:
Turn off bandwidth saving in chrome..
[Android Software/Hacking General [Developers Only]] sugarkane87:
after flashing the script, i can not access google play. Did Anyone else is having a issue similiar to me?
[Android Software/Hacking General [Developers Only]] s--c:
Nope.
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
For all the users having issues: Please read Post #1 and understand the working of this MOD. No system app or libraries are harmed in the process and no slowdown is induced.

transported frm i9500 AOSP AICP
[Android Software/Hacking General [Developers Only]] hanschke:
can I add the url to adaway and all is fine :confused:
[Android Software/Hacking General [Developers Only]] stuart0001:
That's what I've done and disabled all the other urls. Works a treat. Thanks OP. [emoji106]
[Android Software/Hacking General [Developers Only]] AndroidGX:
I tried this, but unfortunately many of my french websites are still plenty of ads :(

But at least it blocks a bit more ads than both obsolete AdAway and AdFree apps, so it's still ok but no perfect on my device.

Thanks jake for your work anyway ! :good:
[Android Software/Hacking General [Developers Only]] Willy89:
Hi.

I think that this mod is great and awesome so i've made a review of it on my website.

It's in italian but it should be possible to translate it in other languages.

Here you can see it.

Hope you will like it.

Bye.
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
WOW... this is Great. Appreciate the review Willy. i will include it in main Post. Awesome :)

transported frm i9500 AOSP AICP
[Android Software/Hacking General [Developers Only]] Willy89:
Thank you so much
[Android Software/Hacking General [Developers Only]] willowpc:
hello, i'm on OnePlus ROM ported for the LG G2.

When i install your mod, everything works perfect, but after i reboot my phone, the ads come back, like if i hadn't installed your mod.

So i have to install again by recovery in every reboot.

There's a way to fix this ? How ? thanks so much ! keep with the good work
[Android Software/Hacking General [Developers Only]] Primokorn:
I noticed this on another ROM (AICP) which already includes a hosts file. I renamed it with .bak extension then MoaAB worked as expected.
[Android Software/Hacking General [Developers Only]] willowpc:
By now it's working, i will keep looking if the ads will turn back, thanks so much for the fast solution ;)

---------- Post added at 04:27 PM ---------- Previous post was at 03:43 PM ----------

Again, from nothing the ads come back, i really don't now why, i'm just playing a game when everything is working fine, and in the middle of the game, the ads come back...

How i can solve this problem ? anyone have a idea of what's the problem ? Thanks so much !

I'm have installed in the phone the PurePerformance Mod, it's have anything that can be cause this problem ? so, i will be apreciate if anyone can help me, ads are very annoying.
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
just disable the hosts persist in /system/etc/persist.conf and delete all hosts in /system/etc/ and copy my hosts, set permissions, reboot.

transported frm i9500 AOSP AICP
[Android Software/Hacking General [Developers Only]] shailraj:
There is no persist.conf in that directory. After every restart my hosts file gets reset go default 101B file size
[Android Software/Hacking General [Developers Only]] willowpc:
I Can't find persist.conf in my system/etc. can be in another place ?
[Android Software/Hacking General [Developers Only]] VolkS7X:
As soon as I uninstalled this mod, the lag went away. Therefore, it has to be caused by this mod, or perhaps a conflict between this mod and something else in my phone. Problem is, I don't know where to look for the issue.
[Android Software/Hacking General [Developers Only]] s--c:
I'm not sure how it'll cause lag :s.
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
Whats your Device and ROM?

Check for any Games or Apps which might be constantly pinging the AD servers.

Check if you have any other ADBlocker, ie; Separate App or In-App feature, Xposed Mod, etc.
[Android Software/Hacking General [Developers Only]] shailraj:
Everytime I restart my device my hosts file gets reset. I have to replace host file from your zip every time
[Android Software/Hacking General [Developers Only]] Primokorn:
The problem is on your side. Check few pages back you'll find some clues.
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
There is definitely some App or Script which is modifying the file. Please check your ROM thread on How-to.

What Device and ROM you are on ???

You might be using some MOD which is taking control during boot.
[Android Software/Hacking General [Developers Only]] shailraj:
Read through last few pages haven't found any solution

Hey thnx for your reply I am on dn3 v5+ only have one mod PurePerformances installed and I am pretty sure that's not the culprit...

Please guide as to what else can I try?
[Android Software/Hacking General [Developers Only]] Primokorn:
As far as I remember PPX has a built in adblocker and it's outdated. You should remove it.

FYI: http://xdaforums.com/showthread.php?p=53098706&postcount=1702

You have to verify if something already uses a adblocker. It could be a rom feature or a mod.
[Android Software/Hacking General [Developers Only]] sonwon:
I think you nailed it with this answer.
[Android Software/Hacking General [Developers Only]] DarthJabba9:
What's the difference between redirection to 127.0.0.1 and redirection to 0.0.0.0 ?
[Android Software/Hacking General [Developers Only]] hawkerpaul:
When a service is listening on 0.0.0.0 this means the service is listening on all the configured network interfaces, when listening on 127.0.0.1 the service is only bound to the loopback interface (only available on the local machine...ie. localhost)

This host file redirects domains to the loopback interface (localhost) so that any request to these addresses just loop back to the local host, and do not get out to the internet (thereby "blocking" these domains)
[Android Software/Hacking General [Developers Only]] DarthJabba9:
Many thanks. I have seen a hosts file that does something like this;

127.0.0.1 localhost
0.0.0.0 foo.foo.org
0.0.0.0 bar.bar.com
0.0.0.0 seek.me.not
etc

I have seen some claims that the 0.0.0.0 redirection is "better" or "faster" than 127.0.0.1 - but from your explanation, it would seem that the opposite is true. Or am I misunderstanding something?
[Android Software/Hacking General [Developers Only]] hawkerpaul:
127.0.0.1 means "The host this software is running on". In contrast, 0.0.0.0 means "Any host"

127.0.0.1 is probably a safer more secure option. However, I've heard reports of some speed improvements when using 0.0.0.0 or 255.255.255.0

Only one way to find out for sure....experiment for yourself.

Just globally find and replace the address....just make sure the localhost address stays at 127.0.0.1

My guess is you won't see too much difference, but its worth a try.

[MENTION=4877037]BSDgeek_Jake[/MENTION]

I've just noticed your bundled host file is ordered alphabetically which is fine, but this means localhost is not the first line and is way down in the file. ie.

127.0.0.1	localhost

I have feeling that the tables get built in the order they are placed in the hosts file, and it would be more efficient if this were to be the very first entry.

EDIT:

Might be placebo, but I think I'm noticing slightly faster bootup times now that I've put localhost first in the host file, and also changing all other addresses to 255.255.255.0. Browsing seems slightly faster, but again, it's hard to say for sure, so could be placebo.

Perhaps you could have a play about with this too Jake?

We need a few testers for this I think......
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
Thanks for the feedbacks. Will test the suggestions and update as posiible.

You should not put any other address except 127.0.0.1 and the reason is subnet. 0.0.0.0 is allow all interfaces and/or 255.x.x.x will divert all traffic to all hosts in that segment. When you are connected as Mobile Data, your IP is nat'ed and few or many hosts are under that nat group. I think you don't want to flood your nat group with traffic. You might feel the speed but in short span your ISP will throttle your Internet for FUP (Fair Usage).

transported frm i9500 AOSP AICP
[Android Software/Hacking General [Developers Only]] hawkerpaul:
255.255.255.0 seems to be working very well for me on both wifi and mobile data

I'll do more tests.....
[Android Software/Hacking General [Developers Only]] SkOrPn:
What about tablet users only on wifi?
[Android Software/Hacking General [Developers Only]] willowpc:
For those that still having the problem that the hosts file turn back to the original file after a reboot or a certain time, maybe this can be caused by the Freedom App. When i was trying to find out what's happening, i uninstalled the Freedom App and flashed the MoaAB again, and works, I'm using the ROM for at least 3 Hours, and everything it's working as expected.
[Android Software/Hacking General [Developers Only]] omdevsinh:
Can you please anyone provide me a flashable link???

---------- Post added at 01:33 PM ---------- Previous post was at 01:28 PM ----------

Where is download link I see on op page there 20.5.2014 show download link not see latest can you please provide me a flashable latest link please
[Android Software/Hacking General [Developers Only]] hawkerpaul:
20/05/2014 IS the latest update, and the link IS in the OP
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
works on tab and mobile. basics are same.

transported frm i9500 AOSP AICP
[Android Software/Hacking General [Developers Only]] SkOrPn:
Basics are the same??? So, my home broadband ISP will also throttle my connection even though my tablet does not have a mobile data account? That makes no sense to me. Why exactly would they do that on a non-cellular tablet and not on any of our home computers using the same network? If I can speed up my Nexus 7's browsing I would love that, but not sure why you said the ISP will throttle my tablet. What exactly would be throttled, my 50/5 internet connection, or would they lower my monthly data cap? CenturyLink has a 250GB cap which is not too bad but I don't want my tablet causing them to lower it, lol... We have 4 Roku 3's that stream from Netflix, so I can not have any throttling going on...
[Android Software/Hacking General [Developers Only]] dillalade:
Is this mod proved to be compatible with PAC ROM 4.4.3 by anyone's experience.

Thanks in advance
[Android Software/Hacking General [Developers Only]] sgs9:
If nobody know, make a nandroid backup, flash zip and enjoy.

Is your hosts file in /system/etc/ i think it will work.
[Android Software/Hacking General [Developers Only]] Basche:
Yes, it should be compatible with everything I guess hahaha
[Android Software/Hacking General [Developers Only]] Primokorn:
With the changelog of Android 4.4.3 it's safe to say that it works.

Another idea would be to make a nandroid then flash and report yourself :)
[Android Software/Hacking General [Developers Only]] yusopa:
Test on AOSB 4.4.3 several days ago it works.[emoji51][emoji106]
[Android Software/Hacking General [Developers Only]] 2545:
Hello...I've been using the host file with great success for couple of years now. It is so very awesome! Thank you!

Unfortunately, it seems that providers are finding new ways of disabling apps from working w/out ads showing. Maybe they found out what you are up to :D. LOL.

Anyway, is there a simple way in which I can find out exactly what ad servers are being pushed with which particular app? I tried googling but nothing came up close and at the same time appreciated what you are doing even more. I hope to use this to edit the host file to allow certain ad servers.

Here's a list of media apps that are currently or have in the past caused problem with proper viewing/listening:

#Dramania - Won't allow video to play unless ad video is played first.

DramaFeaver - Won't allow video to play unless ad video is played first.

MovieTube - Working great with latest 20 May host file!

ShowBox - Working great with latest 20 May host file!

VideoMixPro - Video does not play.

Viki - Won't allow video to play unless ad video is played first.

Pandora - Audio skips when screen is off. Plays fine when host file reverted to stock. Solution is to keep screen awake :D.

Thanks again.
[Android Software/Hacking General [Developers Only]] sonwon:
Easy, if you have a packet sniffer or a router that tracks IP addresses. Google 'network sniffer' there are free choices out there and I am sure others maybe have some better suggestions. Also, be ready for a steep learning curve.
[Android Software/Hacking General [Developers Only]] s--c:
https://play.google.com/store/apps/details?id=com.denper.addonsdetector
[Android Software/Hacking General [Developers Only]] biggyhead:
this worked but man lol it literally blocked everythinggggggggggg lol i coudlnt' even search anything....just lik eofficials site youtube.com ect, but it literally blocked everything
[Android Software/Hacking General [Developers Only]] :
Gradually the file is becoming smaller. So you're removing some addresses ? :mad: Am I the only who see some ads are back in apps ?
[Android Software/Hacking General [Developers Only]] FlanjeUK:
Why the mad face? You are welcome to make your own host file and share it on xda...
[Android Software/Hacking General [Developers Only]] Primokorn:
Simply because the file is constantly optimized. Need more details for the 2nd point.

EDIT

Indeed we will probably see more ads now: http://www.xda-developers.com/android/tired-of-ad-blockers-add-some-ads-to-your-app/
[Android Software/Hacking General [Developers Only]] JonSCSL:
I am still using March 21 update. All updates since have started back with reappearing ads in a lot of my apps and sites.
[Android Software/Hacking General [Developers Only]] :
I always support OP. Never put a hate to him it's just a question for file. Stop trolling...

I don't think that the file can be optimized. Because it's empty (text) file looks like;

127.0.0.1 site.com

So that means if you remove a line it will be smaller. AKA optimized
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
some of you will require massive block but easy on Google play icons and images, Some of you require easy block and still total block. OPTIMIZED hosts file is what i talk. it's a balance between total block and average block.

transported frm i9500 AOSP AICP
[Android Software/Hacking General [Developers Only]] falle21:
Hi, with liquid smooth 4.4.3 have issues. Blocks all the google addresses in any navigator. Any idea?
[Android Software/Hacking General [Developers Only]] budeone:
I still have great luck with this other than with tmz.. This really works great
[Android Software/Hacking General [Developers Only]] shinra00:
Wifi orange simbol

Hey how are you? Want to thank you again for this, have been using it since i have android and love it. Good job, thank you so much!

Since i upgraded my sm-g3815 to CM11 4.4.3 i have been having some issues with internet stability. The wifi icon and the mobile data icon on the quick setting menu are most of the times orange. After reading some about this issue found that most of the users had this problem solved by:

(...) " Go to accounts.google.com -> security -> account permissions. If you see that your devices is granted access more than once , it can cause a problem, where it turn off Wifi as soon as you try to connect your google account. Revoke the access for your device and reboot. As soon as you are rebooted, you should get Wifi-access and the possibility to grant access again. WiFi should stay enabled. "(...)

But for some people, including me this wasn´t enough. It was necessary to "play" with host file, and here is where i need your help since i am using your host file. the following video explains what is necessary to do:

https://www.youtube.com/watch?v=JxWnpoyaDlM&feature=youtube_gdata_player

resuming, it is necessary to add a # before the line 127.XXX.XXX.XXXandroid.clients.google.com mtalk.google.com

Accordingly to: shafreak9472: "Well, the IP address on the second line needs the hashtag for the connection to be stable, because without it the connection will keep breaking, so put the hashtag there and then it will work﻿"

and to: Aaron Whiting: "the hash is commenting out that line. The effect is to delete it without actually deleting it."

after opening your host file and browsing it from one end to another i cannot find any line referring to android.clients or starting with 127.XXX and the damm wifi signal and mobile data are always orange when i enter the quick menu.

Do you have any idea what is happening? Can you help me out please?

Thank you very much for the help, sorry for such an extensive post.
[Android Software/Hacking General [Developers Only]] emutnyeh:
How to uninsstal this mod???

Seriuously it banned porn to.. :cyclops:
[Android Software/Hacking General [Developers Only]] budeone:
I would imagine just refreshing the rom
[Android Software/Hacking General [Developers Only]] 1BadWolf:
That's why it pays to read about what you're doing to your phone. :p All the information you need is in the op, including the flashable zip to revert back to stock. ;)

Edit: or what he said ^^^^
[Android Software/Hacking General [Developers Only]] chitose_ndy:
hello,

just flashed this mod on my xperia z1 and it works well :)

thankyou for this awesome work :D
[Android Software/Hacking General [Developers Only]] Y.G.:
Anybody know why this host file blocks www.crutchfield.com (and www.xvideos.com ) when using a desktop/laptop connected through hotspot? They work when I remove the host file and use the stock one.