Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Hosts file and Android. Good or Bad?


  • Please log in to reply
11 replies to this topic

#1 tos226

tos226

    BleepIN--BleepOUT


  • Members
  • 1,569 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:LocalHost
  • Local time:08:51 PM

Posted 06 January 2012 - 08:03 PM

Thanks for the new info.
Question - mvps file is used on the Android machines, AdFree application. But they also use pg1.yoyo.org list making the file >900kb almost double what I use on Windows. Is that good? bad? indifferent?

BC AdBot (Login to Remove)

 


#2 tork

tork

  • Members
  • 718 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:here
  • Local time:08:51 PM

Posted 07 January 2012 - 01:00 PM

Thanks for the new info.
Question - mvps file is used on the Android machines, AdFree application. But they also use pg1.yoyo.org list making the file >900kb almost double what I use on Windows. Is that good? bad? indifferent?

tos226,
First, I don't use AdFree, had to google it. Something doesn't seem right about a 900kb hosts file. The MVPS hosts file for January 2012 is 594kb. On this windows laptop I'm on right now, I have three hosts files:MVPS,hphosts(ads and tracking)and pg1.yoyo.org and the combined hosts file size is 768kb. Maybe you've got duplicates, in my quick googling I did not see anything about this app deleting duplicates just that it pulled from two sources: MVPS and pg1.yoyo.org. Maybe you know otherwise. If the app is just combining two hosts files and not deleting duplicates that could account for the large size.

tork

#3 tos226

tos226

    BleepIN--BleepOUT

  • Topic Starter

  • Members
  • 1,569 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:LocalHost
  • Local time:08:51 PM

Posted 08 January 2012 - 12:17 AM

On this windows laptop I'm on right now, I have three hosts files:MVPS,hphosts(ads and tracking)and pg1.yoyo.org and the combined hosts file size is 768kb. Maybe you've got duplicates,

I'm so glad I posted here and that you answered!
My HOSTS on Windows is just coming close to 600kb, so that 900kb surprised me.
Since you're familiar with yoyo, and use it, then I think it gotta be the duplicates. Yikes.
I'm not sure how to go about checking. I probably should visit that yoyo site and look.
OR
throw the current file into excel, sort, and see duplicates. Something like that. I probably can't rewrite it myself due to permissions.
OR
Maybe I'll contact the developer
OR
even better idea - do you think siljaline might start making one for Android the way it should be done? :)


Edited: There are NO DUPLICATES in the file provided by AdFree.

Edited by tos226, 08 January 2012 - 11:55 AM.


#4 tork

tork

  • Members
  • 718 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:here
  • Local time:08:51 PM

Posted 09 January 2012 - 02:55 PM

tos226,
Ignore what follows if you've solved why the android AdFree hosts file is 900kb. I'd be curious to know what you discovered if you've solved it.
If there are no duplicates in the Adfree hosts file, then does the developer of the android AdFree app pre-load sites in the hosts file in addition to drawing from the MVPS hosts file of Consumer Security MVP Mike Burgess and Peter Lowe's ad server list at pgl.yoyo.org.

Or alternatively do you have another android app running that is also writing to the hosts file.

Or have you posted in an android forum to see if you can find somebody else who runs the AdFree app and can compare file size.

Or have you posted the issue to the app developer.

tork

Edited by tork, 09 January 2012 - 02:55 PM.


#5 tos226

tos226

    BleepIN--BleepOUT

  • Topic Starter

  • Members
  • 1,569 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:LocalHost
  • Local time:08:51 PM

Posted 09 January 2012 - 06:01 PM

Hi tork
Here's the start of the 31000+ lines. It looks like just the two sources.

# Ad server list for use with hosts files to block ads
#
# For more information about this list, see: http://forum.xda-developers.com/showthread.php?t=509997
# ----
# entries: 31454
# last updated 2012-01-06 09:45:08
# AdFree Version 0.8.43 (8043)
# UID: 0
# sources: http://www.mvps.org/winhelp2002/hosts.txt
# http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts
#
#

127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

127.0.0.1 0.gravatar.com
127.0.0.1 0.r.msn.com
127.0.0.1 000-search.net
127.0.0.1 000dom.revenuedirect.com
127.0.0.1 005.free-counter.co.uk
127.0.0.1 006.free-counter.co.uk
127.0.0.1 007.free-counter.co.uk
127.0.0.1 008.free-counter.co.uk
127.0.0.1 008.free-counters.co.uk
127.0.0.1 00fun.com
127.0.0.1 011707160008.c.mystat-in.net
127.0.0.1 032439.com
127.0.0.1 060810131024.c.mystat-in.net

Another hosts-related app is unlikely.
I contacted AdFree people, no answer.

#6 tos226

tos226

    BleepIN--BleepOUT

  • Topic Starter

  • Members
  • 1,569 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:LocalHost
  • Local time:08:51 PM

Posted 09 January 2012 - 06:01 PM

Hi tork
Here's the start of the 31000+ lines. It looks like just the two sources.

# Ad server list for use with hosts files to block ads
#
# For more information about this list, see: http://forum.xda-developers.com/showthread.php?t=509997
# ----
# entries: 31454
# last updated 2012-01-06 09:45:08
# AdFree Version 0.8.43 (8043)
# UID: 0
# sources: http://www.mvps.org/winhelp2002/hosts.txt
# http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts
#
#

127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

127.0.0.1 0.gravatar.com
127.0.0.1 0.r.msn.com
127.0.0.1 000-search.net
127.0.0.1 000dom.revenuedirect.com
127.0.0.1 005.free-counter.co.uk
127.0.0.1 006.free-counter.co.uk
127.0.0.1 007.free-counter.co.uk
127.0.0.1 008.free-counter.co.uk
127.0.0.1 008.free-counters.co.uk
127.0.0.1 00fun.com
127.0.0.1 011707160008.c.mystat-in.net
127.0.0.1 032439.com
127.0.0.1 060810131024.c.mystat-in.net

Another hosts-related app is unlikely.
I contacted AdFree people, no answer.

#7 tork

tork

  • Members
  • 718 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:here
  • Local time:08:51 PM

Posted 10 January 2012 - 03:51 PM

Hi tos226,

You are showing 31,454 entires in the hosts file. My hosts file has 24,057 entries (that's my three files mentioned in an earlier post).

You've got 7,000+ differential in entries. Dead entries maybe:

Is Merging the MVPS HOSTS file with others recommended?

Not really ... and for several reasons. The main reason is the MVPS HOSTS file is verified prior to each update, in many cases there are as many entries removed as there are added. If you simply Merge the file with your existing file, these removed (dead) entries are never removed and the file will continue to grow needlessly.

Another reason is how valid are these other HOSTS files? ... many of which are just copies of someone else's work anyway, and are not updated on a regular basis.

Editors Note: I do not provide support for issues arising from the MVPS HOSTS file being modified. This includes Merging with other hosts files, or 3rd party programs that alter the file.

MVPS host file faqs

Have you tried returning to the original/default hosts file, then update and see if its a dead entries issue.

tork

Edited by tork, 10 January 2012 - 03:53 PM.


#8 tos226

tos226

    BleepIN--BleepOUT

  • Topic Starter

  • Members
  • 1,569 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:LocalHost
  • Local time:08:51 PM

Posted 10 January 2012 - 11:56 PM

I bet you're right about the two lists and dead entries.
I have to look into it more, since the developer isn't answering.
I'm not going to xda forum, they're too pompous there, and they bash the users.

The idea I have is just to take what I have on Windows, which is just mvps file.
The problem is I don't know how to make a file for Android, because their format seems to have no carriage returns when seen in Windows. And I would then have to shut off that AdFree application which would want to update and overrwrite what I did.

As far as I can tell, there was no hosts file at all to start with. Not sure if it's possible. Alternative - I'll toss in those first few lines I quoted. I have a backup of the original installation, I might be able to confirm whether there was or not a hosts file before I threw in this AdFree stuff. Being so used to HostMan which does a backup, I forgot about it!

#9 Alexander Caldwell

Alexander Caldwell

  • Members
  • 50 posts
  • OFFLINE
  •  
  • Local time:04:51 PM

Posted 11 January 2012 - 07:41 AM

You can use HostsMan to automatically update MVPS Hosts, along with hpHosts, and Peter Lowe's AdServer list. You can manage duplicates with this program and install new lists. You are given the option to Merge or overwrite your Hosts with the updated Hosts. Also it allows you to edit you hosts using it's GUI(Graphical User Interface) in case you want to disable a Host your lists are blocking, or enable a Host your lists do NOT block.

#10 tork

tork

  • Members
  • 718 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:here
  • Local time:08:51 PM

Posted 11 January 2012 - 11:20 AM

tos226,

I found Original Hosts File referring to a Revert function within the android AdFree app which reverts to the default or original hosts file. Screenshot of AdFree Revert button here

If you choose to do this, you'd be back to no adblocking. You could choose to continue with AdFree app and update.

Interestingly, I stumbled upon an android hostsman-like rooted app,called AdAway, which allows you to just use MVPS hosts file if that is your choice.

it combines three servers (hosts-file.net, pgl.yoyo.org, winhelp2002.mvps.org) out of the box. You don't have to use all three. Even better: AdAway lets you add your own hosts file sources. You can add your own addresses to a blacklist in case the default lists don't include them. It also has a whitelist, just in case you want to let some ads pass through to support the developer of your favourite app, or because you run an app that breaks if it can't connect to its sponsor. If you want to tweak things even more, you can redirect URLs to any server of your choice.

Adfree vs AdAway

Links to AdAway:
AdAway - android market
AdAway - google code

tork

#11 tos226

tos226

    BleepIN--BleepOUT

  • Topic Starter

  • Members
  • 1,569 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:LocalHost
  • Local time:08:51 PM

Posted 11 January 2012 - 02:54 PM

Tork,
Great info. Thank you. This Adaway sounds good and I will look into it.

I wasn't sitting idle myself either.
I discovered that I can actually copy and use the hosts file from Windows. My initial troubles were due not to the carriage returns that Windows normally has, and Android does not. It was due, simply, to the fact that in Windows it's HOSTS, in Android the case matters - has to be hosts.

So earlier today I uninstalled AdFree. The hosts file is intact. I then pushed a file from Windows after a ton of fixing of permissions, rebooted, and it's working just fine. It appears that AdFree was just needed for initial push of hosts, and thankfully can be gotten rid of, so it will not update and overwrite what I have.

So I'm a very happy camper. Now onto your Adaway and the other links. I like the way HostMan does the job in Windows, and if any of what you offer really gives me that, it'll be terrific.

THANK YOU for holding my hand through this :)

Edit: The original hosts file was just like in Windows, just 127.0.0.1 lcalhost. I just recovered it from backup.

Edited by tos226, 11 January 2012 - 02:59 PM.


#12 tork

tork

  • Members
  • 718 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:here
  • Local time:08:51 PM

Posted 11 January 2012 - 05:21 PM

tos226,

You're welcome.

tork




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users