yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] metinagar:
Why can't you give us the updated zip? It seems like a backward step, people on here were doing the work you weren't doing and you punish everyone. How can you not update or even come on here since December. I think it's a very piss week effort on the ops behalf
[Android Software/Hacking General [Developers Only]] Ph0z3:
New update failed...

-- Invalid zip extension.

Also, thank you so much for all your continued hard work on this. :good:
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Read the last posts, he made it unflashable. Hang on, let me send you a flashable version..
[Android Software/Hacking General [Developers Only]] Mr Truong:
Why I cannot flash via TWRP?

Sys info don't have META-IFN should be can't install complete

Pls Help me

Thank
[Android Software/Hacking General [Developers Only]] :
No one knows what to do. You are the first one using this. If you read the first page or the last two pages you will get no info.
[Android Software/Hacking General [Developers Only]] AquilaDroid:
Please see OP - "Just Copy Paste the 'hosts' file in /system/etc or Import it in some ADBlock App locally or Import in NetGuard. Thats It. ENJOY" This is not a flashable zip!
[Android Software/Hacking General [Developers Only]] sts70nl:
I would appreciate a flashable version.
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Can this be updated? Who maintains it? It still has the December version on it. Would be cool if it got the latest, it would be much easier for many people.

By the way, I did some comparing and there's a whopping 19,273 lines added since the last version! I'm a bit surprised that not a single entry got removed. Don't some sources just 'die' after a while? Or is it a just-to-be-sure kind of thing? This could be tackled with an automated ping batch (is that legal?) to reduce the massive 205,330 entries. Just thinking out loud here! =)
[Android Software/Hacking General [Developers Only]] murali3127:
I got invalid zip file.format error after flashing the latest zip.
[Android Software/Hacking General [Developers Only]] rayman95:
Read Op about installing it.....
[Android Software/Hacking General [Developers Only]] ainurrofiq:
Nice nice
[Android Software/Hacking General [Developers Only]] warface9991:
Just copy and paste the host file which is located in the zip file you have downloaded into system/etc
[Android Software/Hacking General [Developers Only]] sts70nl:
I don't have root. The installable version was easy to do with twrp.
[Android Software/Hacking General [Developers Only]] adriansticoid:
You can also do copy and paste in TWRP.
[Android Software/Hacking General [Developers Only]] nagpochenpo:
it is updated regulary.

me
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
Thank for appreciation buddy.

MoaAB is no longer installable through TWRP/CWM/Custom.

Its now a simple Copy/Paste.

Since i have moved out of TWRP/CWM to VPN based Apps and find it Better Way to handle crap. I am now using NetGuradPro, On-the-Fly control on what to pass thru and i can tweak things out. I can even change multiple hosts file on-the-fly based on my preferences.

:good:
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
Thank You. I will try to update on regular basis and as time allows.
[Android Software/Hacking General [Developers Only]] adriansticoid:
Man. I've been using MoaAB since Gingerbread. I respect your decision to switch to non-flashable. Please keep up this gem. :) I'll use this until ads are non-existent anymore. Kudos. :highfive:
[Android Software/Hacking General [Developers Only]] icrunchbanger:
Thanks for all the hard work!
[Android Software/Hacking General [Developers Only]] fogame:
So copy paste to host file?

For the life of me I can't find the host file path.
[Android Software/Hacking General [Developers Only]] :
Read the first page? Read last few pages? Search button? Spoon?
[Android Software/Hacking General [Developers Only]] fogame:
Yes? Running off of 1 hour of sleep? Has newborn? Did spoon with wife?

I'll reread it once I'm not a zombie.
[Android Software/Hacking General [Developers Only]] waingro808:
Changing host file requires root.

Thanks OP!!! Been using this for years!
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
You have to admit it was still a silly question, I mean c'mon: https://duckduckgo.com/?q=android+host+file+location

Anyway, congratulations!

There is no spoon :cool:
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
"/system/etc/"
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
Yes "root" is required. Copy/Paste to "/system/etc".

NetGuard (Local VPN) is a best alternate to import "hosts" file and enable/disable on-the-fly. :good:
[Android Software/Hacking General [Developers Only]] DEVILOPS 007:
If I want to use this with adaway then could I simply copy the hosts file and then apply adaway after copying the host file? Thanks.
[Android Software/Hacking General [Developers Only]] ghbuur:
there's a link on the first page specifically for adblock apps ;)
[Android Software/Hacking General [Developers Only]] DEVILOPS 007:
The links all seem to just download the hosts file. Am i missing something?
[Android Software/Hacking General [Developers Only]] ghbuur:
you should add that mahakala link to the sources in adblock app, so it can download and merge it from there ;)
[Android Software/Hacking General [Developers Only]] DEVILOPS 007:
Thanks, I'd done that a while ago but forgot Bout it because it used to say local and online Unavailable. It works perfectly with stevenblack hosts now! Thanks again and to you to dev for an amazing adblocker.
[Android Software/Hacking General [Developers Only]] fogame:
Lol this is true. Brain has fully recovered...somewhat and I found the error in my way.
[Android Software/Hacking General [Developers Only]] DEVILOPS 007:
Root isn't required if we use twrp or use adb pull and push via the pc right?
[Android Software/Hacking General [Developers Only]] gimpy1:
When you say copy and paste the host files, that means to download the zip (about one megabit?), then extract that zip and then put that in the system/etc spot?

Right now I am unsure if I am using this new install procedure or the old install method via twrp? As far as I know, I've both of them installed?
[Android Software/Hacking General [Developers Only]] adriansticoid:
Yes that's right. Copying and pasting the host file is just the same with flashing the older flashable build of MoaAB.
[Android Software/Hacking General [Developers Only]] alakyr:
copied and pasted via twrp but I still see ads.....what about permissions? just to copy/paste or need to change them?
[Android Software/Hacking General [Developers Only]] adriansticoid:
Android automatically sets it to r-w-rr but try to set that manually.
[Android Software/Hacking General [Developers Only]] Yu-Peng Lee:
I guess this does not work on unroot devices

When I fully unroot (stock recovery, no su )my nexus 6 (android 7.1.1), the host file will not work anymore.

And when I root my phone again, the host file is working again

I tried using adb, and manually installing the hosts file, but it still doesn't works, unless my phone is rooted

does anyone know how to make the host file work in fully unroot condition?
[Android Software/Hacking General [Developers Only]] :
Use VPN based adblockers like Blokada(free), DNS66(free), NetGuard Pro(paid). You have an option to import your hosts file in all three of them. Don't need root. One more thing - you cannot use VPN based proxies (regional content unlockers) and such when using these adblockers. You have to disable one to use the other.
[Android Software/Hacking General [Developers Only]] cRaWnEr:
To install as a flashable zip I've take the reset to stock .zip and replaced the hosts file with the update. My device is rooted but I cannot perform any write operation in Root folders in OS, so I needed the flashable .zip.
[Android Software/Hacking General [Developers Only]] wkobaint:
Sorry, I really didn't understand how to use it
[Android Software/Hacking General [Developers Only]] ProudRed:
Doesnt seem to be working for me. Copied the host file, was asked to update the host file in adaway, did.. and after that its still the same.
[Android Software/Hacking General [Developers Only]] HaoZeke:
Clear your caches.
[Android Software/Hacking General [Developers Only]] DEVILOPS 007:
My hosts file is 9.40mb with this and stevenblack hosts in adaway!
[Android Software/Hacking General [Developers Only]] :
Wow. That's huge.
[Android Software/Hacking General [Developers Only]] gimpy1:
I'm not sure if I am doing this correctly? My weather app now gets ads, where before it did not. I took a screen shot of the extraction from the zip in systems>etc. Is that what extracted file is supposed to look like?
[Android Software/Hacking General [Developers Only]] kapil_dheer:
It should just be a file without any extension in hte name of

hosts

This file must already be there. But the replacement file will be much bigger in size.
[Android Software/Hacking General [Developers Only]] ovu85:
i get "invalid zip file" on nexus 6p N 7.1.2
[Android Software/Hacking General [Developers Only]] mumith3:
It's NOT a flashable zip, mate ... Read the OP properly... :highfive:
[Android Software/Hacking General [Developers Only]] ovu85:
The ads didn't stop to appear after replacing the host file but the problem was that i had proxy in the 4g connection settings.

Maybe it will help!
[Android Software/Hacking General [Developers Only]] JuanArg:
Hjjjhhvcfz94rewdghhhvc 555588854
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Wait, I got this!

Welcome to Earth! We mean no harm. The one with fake hair does not represent humanity. Let's make peace.
[Android Software/Hacking General [Developers Only]] JuanArg:
Haha that was my two yr old daughter, she stole my phone while I was sleeping and started touching the screen.

Sorry everyone, and mods please delete the post if you see fit.
[Android Software/Hacking General [Developers Only]] Avinashkanttiwari:
first of all thanks for your effort for collecting data.

however my youtube is not recording history now and doing some research few article indicate that using adblock can be a reason of it.i understand how host file works and doubt editing it will affect device in such manner .still can it be related to editing host file.

anybody else got similar problem.

i checked my history is not paused.still i switched it on off again.
[Android Software/Hacking General [Developers Only]] araxhiel:
I've read somewhere else (I can recall exactly where, but I bet that it was on someonewhocares.org) that blocking this host

s.youtube.com

can disrupt some functionality of YouTube.

Perhaps that's the origin of your issue. You can do a test, commenting that host on your hosts files, and see if that solves your problem.

Regards.
[Android Software/Hacking General [Developers Only]] Avinashkanttiwari:
worked.

thank you sir for sparing time.

to anyone else using this host file i will suggest to remove s.youtube.com from the host file, for obvious reason . enjoy.
[Android Software/Hacking General [Developers Only]] araxhiel:
No problem. Glad to hear that it worked for you.

Regards!
[Android Software/Hacking General [Developers Only]] NAZUnlimited:
Just wondering if it is possible making a hosts file with just the most annoying and common ADS? like a very lite version
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
This would defeat the purpose of this thread. The whole point of having the "Mother of all AD-BLOCKING" is to be as all-inclusive as possible. What you need is BoaAB: the "Baby of all AD-BLOCKING". Most ad-blockers (like Adblock Plus) are aiming for what you're looking for.
[Android Software/Hacking General [Developers Only]] Pshemo__:
Does it work properly on Xperia 6.0.1 rooted stock?
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Since it's host based, it would even work on your Windows PC. So yes, it will :)
[Android Software/Hacking General [Developers Only]] :
Can I use this with Ublock Origin?
[Android Software/Hacking General [Developers Only]] newintage:
No matter what it is. You can use it with anything. So yes.
[Android Software/Hacking General [Developers Only]] thehobit:
Copy hosts file with no root

Thanks for the great work.

I have a work none-rooted phone, is it still possible to copy the hosts file?

Is there a flashable version?
[Android Software/Hacking General [Developers Only]] icrunchbanger:
You need root access for /system partition. Flashable version is not available but you can create one, or google it how :)
[Android Software/Hacking General [Developers Only]] masteryx:
I am successfully using this hosts list (along with others) to block undesired web addresses on a non-rooted phone. I'm doing it by using DNS66, an application that works as a VPN and blocks the DNS requests for the listed hosts. Only the DNS requests are going through the VPN, the internet traffic itself is direct. Because of that, after the connection is established there are no delays.

Being forced to live with a non-rooted device (until an exploit is found or the bootloader is unlocked by the manufacturer), this combination is making the whole experience of using a smartphone rather pleasant again.
[Android Software/Hacking General [Developers Only]] thehobit:
Can I just use the previous flashable MoaAB, replace the hosts file and then flash?
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
Best way is to FLASH the CWM zip as the new updates are rolled-out. Check back every few weeks.
[Android Software/Hacking General [Developers Only]] pro.aggro:
Use AdAway and add the url from the host file

Sent from Nexus 4 powered by PARANOIDANDROID
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
Thats Y my MOD exists as long as people stop using it.

There is no illegal contents here. Technology is Valid. Methods are Valid.

User has the option to FLASH the MOD or not to. The choice is Urs.
[Android Software/Hacking General [Developers Only]] onealvideo:
Did not mean to offend...
[Android Software/Hacking General [Developers Only]] Cookie Ninja:
@OP,

No offence, but I tried your hostfile as well as the hostfile generated by this app: http://xdaforums.com/showthread.php?t=2252747.

Found your list too inflexible and difficult to mod/use, whereas the second app does it in a much better manner and gives you the choice to select hostfile sources and to add/subtract your black/whitelist to it. Not knocking your method, but there IS a scope for improving your cwm flashable method (hell, I used to run a java programme on my PC to parse hostfiles from various sources and compile them into one massive hostfile for my PC and android phone some Years back, and switched to this app for the android, and use mvps.org for my PC).

Dead Cookies leave no trails...
[Android Software/Hacking General [Developers Only]] syl0n:
This seems to break the play store. Some screenshots / app icons don't display - any idea what servers i need to remove from the file to fix that?

EDIT:

Please remove these to fix this:

127.0.0.1	lh5.ggpht.com
[Android Software/Hacking General [Developers Only]] pro.aggro:
some icons are stored on the google ad servers.

so no pics & no ads or pics & ads :D
[Android Software/Hacking General [Developers Only]] precardo:
Hi guys I want to try this interesting mod, does it also block ads displayed by apps aswell?? :)
[Android Software/Hacking General [Developers Only]] Hedied4me:
Yessir.
[Android Software/Hacking General [Developers Only]] precardo:
Wow:eek: really:eek: ??? So practically I won't experience in-app annoying ads ??
[Android Software/Hacking General [Developers Only]] Hedied4me:
Most, if not all will be gone. Some apps have ways of hiding ads within their menus that advertise for other games they make and those I still see but that's it.
[Android Software/Hacking General [Developers Only]] MBariya:
Some ads are still coming in some apps. Please remove this if possible. Attached screen shot for ref.
[Android Software/Hacking General [Developers Only]] vikraminside:
100000000 thanks. It works. Looks like phone a little slow to read MBytes of data in hosts.

Anyone experiencing same?
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
Phone will be little slow for the first boot n app initialization then it will be in cache. I think little slow is Good as long as Security is in place. Enjoy.
[Android Software/Hacking General [Developers Only]] deeplyyoung:
Dev, Tnks for this lovely thread & ur all support, as m using the same on my C@NV@S 2 & in my CHD & m really tnkful to you for your hard work & support...:good::good:
[Android Software/Hacking General [Developers Only]] hermandroid:
I can do this manually right? Just replace the hosts on /system/etc and set it's permission, reeboot, right? I know well how to use cwm, unfurtunately I can't find one for this phone :rolleyes:
[Android Software/Hacking General [Developers Only]] MidnightDevil:
You can't find the host file [MENTION=457974]...[/MENTION] /system/etc/hosts? :)

Thanks for this update! :highfive:
[Android Software/Hacking General [Developers Only]] hermandroid:
What I can't find is the cwm recovery, not the hosts file, sorry for the miss understanding. So because I can't find cwm for my phone, I would like to push the hosts file manually to that /system/etc, is that possible?
[Android Software/Hacking General [Developers Only]] shahabazas:
Yup its possible only u need to have the latest busy box installed to get the most out of the host file.
[Android Software/Hacking General [Developers Only]] vikraminside:
Super boss :)

What is the use of busybox btw? I don't see apk icon but all rooted app works.

Why should one opt for firewall anymore when superwall is here? No droidwall no kernel patch for iptable support no mess. Enjoy stock :cool:

It does not block entire app but only advts which is really neat :thumbup:

This mother knows best for her kids
[Android Software/Hacking General [Developers Only]] icrunchbanger:
Sure.
[Android Software/Hacking General [Developers Only]] thehobit:
Just it installed configured, yet it does not seem to block ads..still trying.
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Yes, that's what I did. I got it prepped for anyone who wants it (see many posts ago).

---------- Post added at 10:11 PM ---------- Previous post was at 10:06 PM ----------

I was thinking about printing it out and taping it to my mailbox to block physical ads but that probably doesn't work... Would be a hoot for geeky postal workers though!
[Android Software/Hacking General [Developers Only]] Zorachus:
How do I actually install these hosts ? I downloaded the .zip file in the OP and flashed in Recovery, but it failed nothing flashed
[Android Software/Hacking General [Developers Only]] icrunchbanger:
Please search the tread before posting. Latest edition is not flashable. You need to store it manually to /etc or create flashable zip by yourself.
[Android Software/Hacking General [Developers Only]] realista87:
what's the difference with the unified host by StevenBlack? https://github.com/StevenBlack/hosts

seems that BOTH are merging other lists to creare ONE BIG host file......

but basically, what is the difference, none? just 2 parallel projects... what have the same GOAL to merge all soiurces into one big host?
[Android Software/Hacking General [Developers Only]] Pariah24:
Blocking other host files

May I ask why your list blocks https://hosts-file.net? It is a legitimate site that also has Hosts files.
[Android Software/Hacking General [Developers Only]] harshil33:
I am using this by importing in netguard on my non rooted phone.

It fails in adblock test pages. See this.
[Android Software/Hacking General [Developers Only]] Sir_gpm:
Do yo know what happend? Was easier just download the zip and flash, look like people is having problem setting the hosts.
[Android Software/Hacking General [Developers Only]] jerkwagon:
I have OKcupid app and i can no access the ok cupid webpage or app. how do i fix this?
[Android Software/Hacking General [Developers Only]] SuperSandro2000:
If you use adaway just whitelist their domains. I think this is under sources > whitelist.
[Android Software/Hacking General [Developers Only]] Julianinho:
Hi,

I have a problem to flash the zip on my OnePlus3 (rom stock, not root).

I have the recovery stock, i don't use a recovery twrp.

When i tried to flash the zip on my recovery stock, i have a message error "instal failed"

Have you any idea ?

Thanks !
[Android Software/Hacking General [Developers Only]] triad88:
If u read the first post then u would know how to use it. But the zip isnt flashable. U need to copy the file to a special place then reboot ur phone.
[Android Software/Hacking General [Developers Only]] Julianinho:
Thanks i don't see this ;)

But i don't have "system/etc" on my phone, i'm not root and i think this folder it's appears only for root user ?

I use miXplorer and root explorer.

There is an another solution to transfer the host file on the folder etc ?
[Android Software/Hacking General [Developers Only]] Jimi Mack:
If you are not rooted, no you can not transfer the file where it needs to go with MiXplorer or Root Explorer.

But you can use a 3rd party app to use the file, look at the link I have below, you can use the host file through this app via a VPN without being rooted.

https://f-droid.org/packages/org.jak_linux.dns66/
[Android Software/Hacking General [Developers Only]] chazarss:
do i need to uninstall AdAway app?

because when i run the app it reverts the host file previous
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
You should be able to perform this operation from recovery. If not, I have a flashable zip prepared but am not allowed to post it here, just send me a PM.

Sizzled with Bacon ?
[Android Software/Hacking General [Developers Only]] Julianinho:
Thanks for the link, i try this, i hope it's work ;)

Thanks, i try whit recovery ;)
[Android Software/Hacking General [Developers Only]] jerkwagon:
I don't use it
[Android Software/Hacking General [Developers Only]] SuperSandro2000:
Use adaway or you need to manually remove their entry is your wait until he removes it.
[Android Software/Hacking General [Developers Only]] qtipbailey:
I've found that MoaAB breaks something such that Microsoft Excel can't open files in OneDrive and OneNote can't connect to my notebooks. If I remove all lines containing the word Microsoft it fixed the problem. Of course, it would be preferable to find the exact line that causes the issue and remove only that one. Any pointers on how I might find that out? Presumably, I need to find a log somewhere.
[Android Software/Hacking General [Developers Only]] kapil_dheer:
Install adaway.

3 dot menu > log dns requests > run tcpdump.

Work out the app intended. App will log the connections. You can then match the same with hosts entries to short them down.
[Android Software/Hacking General [Developers Only]] harshil33:
I placed this in my windows pc and voila !!!!!!! It blocks all ads perfectly.

Thanks Man.
[Android Software/Hacking General [Developers Only]] acsway878787:
[MENTION=4877037]BSDgeek_Jake[/MENTION]

Hello, I want to thank you for your awesome work, it's really a magic.

But there's still a problem: after using your host, I can't play those games in FB Messenger, I hope it will be fixed! Thanks again!
[Android Software/Hacking General [Developers Only]] harshil33:
While opened in Notepad in Windows xp it shows every entry in separate lines and also working perfectly, there is not delay in opening web pages, but same hosts file when i opened in notepad of windows 8, the whole file is messed up. No spaces and no Enters. also when placed in etc it slows down web pages.

Any solutions guys ?????
[Android Software/Hacking General [Developers Only]] kapil_dheer:
The hosts have Unix end of line. So open & edit in apps like notepad ++ which maintains the formatting.

Don't really know why it hangs webpages. Maybe try browsers like Firefox or Chrome rather than inbuilt ones.