yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] sunu792002:
Thank you..... it's work :good:
[Android Software/Hacking General [Developers Only]] Zordak7:
How can I know which ip or ip's a specific app needs, in order to manually add it to the host file?

Saludos!
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
I suggest adding afwall + [ Donate Version ] to your arsenal. Don't give the app in question internet permissions. Turn on logging service in preferences. Open up your app, then go into LOGS, press on your app ( this is what takes donate version ) it'll show all destinations, sources, whether it's wlan-wifi or rmnet-mobile and the time of request. And the choice to add to custom rules. If you look a page back, you'll see whatI did using same method.

Someone else said you could use Adaway to do it
[Android Software/Hacking General [Developers Only]] nidpancho:
whitelisting fb

removing all of the "legit" facebook.com links is allowing a bunch of ads through.

I'm gonna try to capture exactly what domains are being queried when using messenger and adding dank memes to chat with it's built-in giphy support.

if someone already has this answer, you'd save me a lot of time! :D
[Android Software/Hacking General [Developers Only]] dany__:
Hi floks

can someone PM me the facebook friendly of the new version?

Thanks in advance
[Android Software/Hacking General [Developers Only]] nidpancho:
FB Messenger App Domains

I bought AFWall+ Donate and logged the traffic.

These are the domains it attempted to connect to...

edge-mqtt-mini-shv-01-lax3.facebook.com
edge-mqtt-mini-shv-02-lax3.facebook.com
edge-star-shv-01-lax3.facebook.com
edge-star-shv-02-lax3.facebook.com
xx-fbcdn-shv-02-lax3.fbcdn.net
xx-fbcdn-shv-01-lax3.fbcdn.net
ec2-34-193-80-93.compute-1.amazonaws.com

none of these are on the MOAB hosts file. I'll see if I can continue logging whilst using the application so I can what other domains it calls for.
[Android Software/Hacking General [Developers Only]] caper:
I need the facebook friendly version too.

thanks
[Android Software/Hacking General [Developers Only]] nicosafull:
can someone provide me the Facebook friendly version please? thank you
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Thank you for your contribution! :highfive: I've added your findings to the FB-fix version. I've also simplified links with Bitly, which also gives me some stats to see how popular (fb friendly) flashable is. Regular flashable version can now be obtained from http://bit.ly/MoaAB-flashable (I'll keep this link updated with the latest version released by OP – unedited). The hosts file with Facebook edits can be obtained upon simple request via PM (click here to send me one).

PMs with updated FB fix already sent to [MENTION=3117090]dany__[/MENTION] [MENTION=442180]caper[/MENTION] [MENTION=5950483]nicosafull[/MENTION] and [MENTION=5356084]nidpancho[/MENTION]
[Android Software/Hacking General [Developers Only]] ndrancs:
Me too please. Thanks
[Android Software/Hacking General [Developers Only]] Saswata Chakraborty:
Hi,

After using MoaAB, my facebook app shows offline. But when I remove MoaAB, Facebook again starts working.
[Android Software/Hacking General [Developers Only]] kapil_dheer:
Check previous posts. Lots of discussions for Facebook.
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Check your PMs ;)

Again, to all requesters of a Facebook fixed flashable version, please make your request via PM to keep this thread clean of manipluated versions (upon OP's request). Thanks!

Based on the last 10 requesters, I reply in 2 hours and 15 minutes on average. Last 10 response times (for the arithmophilia among you): 00:33, 01:09, 01:04, 00:38, 02:09, 01:59, 09:01, 00:30, 00:47, 04:46. If it weren't for that 9 hour peak (I was sleeping! lol), it would've been 1.5 hours on average ^_^
[Android Software/Hacking General [Developers Only]] Saswata Chakraborty:
I apologize for any trouble.
[Android Software/Hacking General [Developers Only]] jaymoker:
Yep, there's a host/IP which is blocking some part of Spotify.

I can access "Browse", "Search" and "Your Library" but I can't access "Home" and "Radio".

I've searched for Spotify in the host file and found only one entry which I deleted.

Problem still there.
[Android Software/Hacking General [Developers Only]] dyval:
I experience this as well. Hope there's a fix.. Thanks
[Android Software/Hacking General [Developers Only]] RIPPERS:
Can you fix it ?
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
By removing those entries, I guess so. I've sent you a flashable with an adjusted Hosts file, try that. If you don't want to flash, just extract the hosts file from the zip (/system/etc).

[MENTION=4287088]cikenkari[/MENTION] I would love to reply to your PM but you've disabled receiving them:
[Android Software/Hacking General [Developers Only]] Desmondz:
Can I have Facebook friendy

Thank for make this host for blocking annoying ads, but sir can you send me host Facebook friendly version from me sir, please... And thank you for this awesome host and I'm sorry for my bad English...
[Android Software/Hacking General [Developers Only]] Erroneus:
https://www.batteribyen.dk is incorrectly being blocked. Added to own whitelist, just an fyi.

It's one of Denmarks most trusted online shops.
[Android Software/Hacking General [Developers Only]] pleasetouchmenot:
[MENTION=4841620]Timmmmaaahh[/MENTION]

Can you send me a friendly flashable with FB/messenger/spotify fix? Thankyousomuch. Sorry OP for being out of topic.
[Android Software/Hacking General [Developers Only]] flamery:
Sorry if already discussed, but does using google data saver render the host file useless? ( have turn on DS) and seeing a lot more ads now
[Android Software/Hacking General [Developers Only]] nicosafull:
have you tried clearing cache?
[Android Software/Hacking General [Developers Only]] flamery:
I have not, cache of which app?
[Android Software/Hacking General [Developers Only]] nicosafull:
it might be chrome? I don't know which app is using that cache system
[Android Software/Hacking General [Developers Only]] TrayDays:
Is it possible that I also may get the flashable for the spotify fix so i can use the browse and radio etc again?
[Android Software/Hacking General [Developers Only]] flamery:
Cleared caches and still seeing ads.

Seems that Data saver is not related as I turned it off again.

I am seeing a lot of "ads by google" now showing. I wonder if they have changed their domain or changed something else in the last few days

Edit>>

never mind its solved

So first off I think its safe to say yes Google Data Saver will stop moab from blocking ads

Secondly I had copied the contents of the hosts file download from one pc to another pc via notepad++, before installing, the hosts file did not work (ping a blocked host and it would return its real IP) after downloading the file fresh and installing direct onto the phone and rebooting it was working correctly (ping the blocked host and it returns 127.0.0.1)

ads are now gone :)
[Android Software/Hacking General [Developers Only]] marioo007:
Really, mother of all the ad blocker
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Check your inbox! ;)

I've updated the flashable PM. It now contains the original version, a FB friendly one, a Spotify friendly one and a combination of both. If anyone needs it, you know where to find me!

Again, no need to post about this in the thread, we'd like to keep this place all tidy and clean ^_^
[Android Software/Hacking General [Developers Only]] dyval:
Bro do you think i can use your flashable zip together with ADGuard? If so, please PM me the updated file which has a working Facebook and Spotify..Thank you :highfive:
[Android Software/Hacking General [Developers Only]] Brenneke:
Hosts file is working for me except am still getting ads in TextNow app. I use this app for the odd occasion where I need to send SMS when have wifi only. Could someone please offer suggestions as to how I can work to reduce or eliminate ads in this app?
[Android Software/Hacking General [Developers Only]] mzahs:
It does not block ads in yahoo weather, is there a fix for that? Also, it disables local host file when using in adaway, anyone else has this issue?
[Android Software/Hacking General [Developers Only]] solertai:
Spotify

(lists in quote removed as I can't post links ...)

I can't seem to get this to work. I first tried removing the 6 in the last list where list A and C overlap, then I tried removing everything with a "spotify" in it via a Find, then tried removing the "api.segment.io" ... I found a couple apps that capture packets and I tried making sense of that mess but all I could find in addition was "crashlytics.com" and various "bc.googusercontent.com" ... I removed what I could find, copied to system/etc and cleared cache. I'm having no luck with Spotify Home, Radio, or Search. I've Premium, if that matters.

Anyone have any luck or see what I'm not doing right? I figure I'll start just removing everything in lists B then C next ... Thanks for the help!
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Sent ya a little PM ^_^
[Android Software/Hacking General [Developers Only]] Resync:
Why is kotaku.com not working with your list?
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Because it's a spammy gaming site with an expired SSL certificate? Just a wild guess..
[Android Software/Hacking General [Developers Only]] arifnasirshaikh:
Guys any solution for facebook app i can't see comments?
[Android Software/Hacking General [Developers Only]] WormyBirdfinger:
mahakala.is 404 not found

Hello, I've been loving this hosts file. I use in conjunction with adaway on my android phone but as of today I've been unable to connect to the adblock.mahakala.is site. HELP!!!
[Android Software/Hacking General [Developers Only]] gaurdjatixa:
Can I have an updated one that is facebook and spotify safe that works with adaway? Thanks!
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
I'm seeing it too, let's tag [MENTION=4083745]nagpochenpo[/MENTION] in this case. I'm getting an unskippable "NET::ERR_CERT_AUTHORITY_INVALID"

Perhaps we just need to wait a bit :)

You just got one ;)
[Android Software/Hacking General [Developers Only]] shovon:
This causes problem with facebook & some other sites.

Temporary solution: try adding *.facebook.com & *.fbcdn.net to whitelist
[Android Software/Hacking General [Developers Only]] Spooderman46:
The link is no longer worker in Blokada, something wrong with the host?
[Android Software/Hacking General [Developers Only]] Rose Commander:
Thank you whoever posted the host file for VPNs. I would like to point out that it has a tendecy to block some websites that are legit news websites like twitchy (dot com), dailycaller (dot com), or breitbart (dot com). Are these websites are blocked because of ads or because they are conservative websites?
[Android Software/Hacking General [Developers Only]] :
I'm not being able to update the host file. Using DNS66. Says host file not found.
[Android Software/Hacking General [Developers Only]] Ken C:
[emoji1] Valid question there man
[Android Software/Hacking General [Developers Only]] KomitaMKD:
Im noob please explain me what is this if not app. I use adaway. Is this better or what? Please explain me simple someone
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
If you're a noob, at least you're a senior noob :D

This is not better or worse compared to AdAway. MoaAB is simply a list of hosts that are – at OP's discretion – considered as malicious/privacy invasive/ad providing/etc.

Your AdAway uses a similar or even the same list (depending on which sources you've added) and then replaces the same hosts file as MoaAB does.

What is this hosts file? You'll find it on virtually any operating system. For Windows it can be found in C:\Windows\System32\drivers\etc\hosts,. For Windows in simpler times (eg. Windows 3.1) it was found in C:\Windows\HOSTS. In Linux it can be found in /etc/hosts. Mac OSX has it stored in /private/etc/hosts. Systems like AmigaOS (can we get a port of this? anyone? lol) have a more exotic location such as AmiTCP:db/hosts. For both iOS and Android it is located, like most UNIX systems, in /etc/hosts.

"Alright, alright, Timmy, you've told me where it is but not what it is!", I hear you thinking. Hang on, I was just getting to that. When the system boots, it loads this list into RAM and everytime an external connection is made (eg. you visit a website or an app contacts its ad server), this connection is compared to all the entries in that list. If the entry is found, the connection will be blocked. If it's not found, the connection will be allowed. Since it resides in the fastest memory any system has, this check only takes a few milliseconds, even if there would be a million entries (there are 220,366 entries in this case).

The advantage over an adblocking app is that you don't need to install anything. You basically skip the app and do the work yourself by replacing the hosts file manually or by flashing it. This can save some resources and it can be done right after a ROM flash so before the system even boots for the first time. MoaAB can also be used on any other OS. The disadvantage is that the process of white- or blacklisting items is less flexible as there's no user interface.

If this was a satisfying answer for you, please hit that thanks button below.
[Android Software/Hacking General [Developers Only]] KomitaMKD:
Omg couldn't get better answer. I really didn't expect this good answer. I would give you 10 likes for this answer. Thank you so much ?*♂️
[Android Software/Hacking General [Developers Only]] topjolly:
You answered your own question right there, rhetorical or not. Be careful it's like a disease these days ;)
[Android Software/Hacking General [Developers Only]] Wisiwyg:
and possible links to malware/tracking. You can edit the blocks out if they want to go there.
[Android Software/Hacking General [Developers Only]] amakuramio:
Can't access Tumblr website, LiveLeak, certain forums..
[Android Software/Hacking General [Developers Only]] eevoenc:
i cannot upload anything on any website
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
That is most likely unrelated to MoaAB but you'll have to be way more specific than that in order to troubleshoot anything. Give at least a few examples of different domains where uploading is prohibited.
[Android Software/Hacking General [Developers Only]] Youtube_Ll0r3nt3:
Please, exclude this:

xvideos.com

m.xvideos.com

xnxx.com

m.xnxx.com

Ad Fly

shorte

Also related to the login of Facebook, when you log in from Facebook for example in Aliexpress, it stays in a loop. Delete all the entries refers to Aliexpress and it remained the same and as it happens in other applications at the end is Facebook.

Thanks
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
I've spent many hours trying to figure out how to lessen or eliminate ads from Musixmatch lyrics service used in BubbleUpnp and Poweramp. Here are the urls to include in your hosts file -

https://www.dropbox.com/s/7wxkiqqpltqf3zi/musixmatch.hosts?dl=0

I use it conjunction with minminguard.

Let me know (in pm) how it worked or didn't work for you
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
I don't believe you fully understand that point of MoaAB. Let's quote an important bit from the OP here:

All the domains you referred to meet one or more of these properties. The Facebook login via 3rd party domains meets the tracking property. If you do not wish this protection, either do not use MoaAB, use another service or perform some edits before applying it. Good news, I have made a more FB friendly version that can be obtained by simply dropping me a PM. I will not, however, cater to your pornographic needs, you'll have to figure that one out yourself.
[Android Software/Hacking General [Developers Only]] Mahindar:
Hi

I'm using Mi 5 recently i flashed oreo based miui beta rom. After updating i'm not able to block ads using this mod. For oreo i updated my twrp from zcx version to official latest twrp 3.2.2-1. But I'm still seeing the ads. It was working when i had nougat and zcx twrp.

Also one thing i obeserved is this latest twrp is getting replaced by default recovery every time i reboot

Can you guys please help me out

Thanks
[Android Software/Hacking General [Developers Only]] kapil_dheer:
Make sure some option in developer options is unchecked if at all in name of update recovery.

Also, in newer roms, you need to install magisk etc to keep twrp retained. And flash this MoaAB as well.
[Android Software/Hacking General [Developers Only]] thecryptzen:
I noticed that you do not include Android Oreo ( 8.0 and 8.1) in supported versions, does that mean Android Oreo is not supported?
[Android Software/Hacking General [Developers Only]] myrigon:
It works.
[Android Software/Hacking General [Developers Only]] thecryptzen:
Thank you
[Android Software/Hacking General [Developers Only]] Mahindar:
I didn't find any options with name of update recovery.

You mean even for flashing host file i need to install magisk?
[Android Software/Hacking General [Developers Only]] kapil_dheer:
Sure. And after flashing magisk, your twrp will stay.
[Android Software/Hacking General [Developers Only]] Mahindar:
If i can flash host file provided by Timmmmaaahh and block ads that is more than enough for me for now. So you are saying that magisk is the only option to flash it?
[Android Software/Hacking General [Developers Only]] kapil_dheer:
No. If you have twrp access then that's enough.
[Android Software/Hacking General [Developers Only]] Mahindar:
Its not working when i flash from twrp. I'm using twrp 3.2.2-1

On top of that one more issue is twrp is getting replaced by stock recovery. I'm ok with this. I will check on this later

Blocking ads is my only concern for now
[Android Software/Hacking General [Developers Only]] kapil_dheer:
Told you already that you need to install magisk to stop stock recovery replacing twrp.

For moab, try installing magisk from twrp, reboot to recovery, install MoaAB.
[Android Software/Hacking General [Developers Only]] evilvoice:
What? Really? I expect to be catered to on a daily basis. J/K. I'm kind of surprised someone asked for those specific sites and didn't ask for info on how to remove another non-pornographic host from the file (which has been detailed in this thread somewhere). I think there is even a sed grep command that someone posted in here because that's what I've used to remove sites (this is mainly info for the other guy). Keep up the good work[emoji3]
[Android Software/Hacking General [Developers Only]] AngryLady:
I'm editing custom hosts file. Please tell me which one is correct.

# MY CUSTOM HOSTS #
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
::1 localhost
#
0 adserver.fbi.net
0 adserver.cia.net
0 adserver.nsa.net
0 adserver.mi5.net
0 adserver.mi6.net

# MY CUSTOM HOSTS #
0 localhost
0 localhost.localdomain
::1 localhost
#
0 adserver.fbi.net
0 adserver.cia.net
0 adserver.nsa.net
0 adserver.mi5.net
0 adserver.mi6.net
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Either will work, it doesn't even need a fancy lay-out or any headers.

In the end, it's just a simple file with 2 variables on each line: where you're directing traffic to and which address to target.

MoaAB starts with:

0.0.0.0 localhost
0.0.0.0 localhost.localdomain
0.0.0.0 android
0.0.0.0 test
0.0.0.0 testing

I'm not sure what difference there is between just "0" and "0.0.0.0", probably works the same way. If you'd have any trouble, just replace all "0 " with "0.0.0.0 ".
[Android Software/Hacking General [Developers Only]] flint777:
Wassup ppl ! Please post or pm me facebook friendly version !! Thank you very much
[Android Software/Hacking General [Developers Only]] AngryLady:
Thanks. 0 is little bit faster than 0.0.0.0, and the file-size is significantly smaller.
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Is it? What's that based upon? I won't take your word on that :p

Since hosts is loaded into RAM, I think that really won't make any difference. My OnePlus One is equipped with LPDDR3, which does 1600 MT/s (Millions of Transfers per Second) and your Xiaomi Redmi Note 5 even has LPDDR4, which can handle 3200 MT/s. My RAM thus has a theoretic bandwidth of 12.8 GB/s (source). In plain English, that means my device will take exactly 0.000420527 seconds to process the 5,779,676 bytes of the MoaAB hosts file (in theory!). If we'd replace all "0.0.0.0" entries with "0", that would take down the size of the MoaAB hosts file to 4,457,342 bytes, translating to 0.000324314 seconds. That's 0.000096213 seconds faster, nearly one ten-thousandth of a second! That'll surely make the difference :D

Sorry about that, I just dig numbers and I won't accept any statements if they're not backed up by facts. If you weren't talking about the processing of the file itself but the routing time to "0" instead of "0.0.0.0", you better give me some proper math along with it ;)

I think "0" just re-routes to "0.0.0.0" anyway so if anything, it'll take longer. Want me to calculate how much longer? lol

That's right, kids, math is FUN!
[Android Software/Hacking General [Developers Only]] eevoenc:
I mean on every sites (facebook, dropbox, drive, forum, etc) I cannot upload any files after use this hosts file, but if I delete hosts from system/etc it's back to normal
[Android Software/Hacking General [Developers Only]] mumith3:
Sensei ??? Stop killing us softly with numbers ? it hurts ??? *pun intended* please don't be mad

#peace
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
That is most peculiar! I've never had any issues with uploads, especially not with services like Dropbox or Gdrive... I haven't seen any recent reports on this either. Are you sure nothing else could be influencing this? A router (setting) maybe. Same results on Wi-Fi and mobile? Any changes made to the host file? How are you applying it?

Lol, you won't see me mad that easily. Numbers = love ?
[Android Software/Hacking General [Developers Only]] eevoenc:
I use default setting for aosp rom by huangnguyen, download zip on 1st page and put hosts file into system/etc, that's all

so if I want to upload something, I have to delete hosts file first than push back to system after upload done
[Android Software/Hacking General [Developers Only]] AngryLady:
Life is not math, kids.
[Android Software/Hacking General [Developers Only]] JJEgan:
Nope just bits and bites
[Android Software/Hacking General [Developers Only]] evilvoice:
But it is. It's all subtraction (or adding negative numbers)
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
never said it was
[Android Software/Hacking General [Developers Only]] MrT69:
Whatever you try to calculate in your life, the reality spoils any result.

;)
[Android Software/Hacking General [Developers Only]] paradoxiumwind:
Is this the 'best' adblocker around? I had a look at some other threads but I haven't seen anything as simple as a 'hosts' file like this, it works fine but just wondering if there's anything more up to date etc?

Thanks guys.
[Android Software/Hacking General [Developers Only]] iPAQ 6515a User:
Try KeWeOn
[Android Software/Hacking General [Developers Only]] GenocidalTeacup:
Hello! If I could have the Facebook zip to flash that would be perfect :)
[Android Software/Hacking General [Developers Only]] paradoxiumwind:
Thanks, but that seems to be only if you change the DNS on your home router, i'm looking for a solution for my device so it's always adblocking when on non-wifi and other routers etc. Is this the best option then?
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
That's optional with keweonmod, you can use the dns changer on your device that's recommended