Topic: good list for /etc/hosts

here is a good list i got from a friend from an online source. i touched it up and removed all of the commented out links and dates. It may be a little overkill, but if you are using say, chromium-browser, which doesn't have an ad blocker, this will help a little.

http://pastebin.com/f290d4301

add that to the bottom of your /etc/hosts file and delete your internet cache and you are set to go.

Sigs do it better

Re: good list for /etc/hosts

And how does your friends list compare to other HOSTS like mvps?

http://www.mvps.org/winhelp2002/hosts.htm

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: good list for /etc/hosts

I'm beginning to find ads interesting these days. My host file blocking efforts are geared toward trackers and those ad servers that I find really go overboard. Noticed a few appearances of Google in there by the way - that's - ahem - those ads up there ^^ - they're paying for this.

Re: good list for /etc/hosts

as i mentioned, this will help a little, especially if your browser doesnt have an ad blocker, ad blockers will do much more than this list can, and there are  better lists out there as well i am sure.

Toolz: I have never seen a google ad on here before, even before this list. I know it uses google search, which isnt affected by this list

Last edited by sircrazy (2009-09-13 17:50:37)

Sigs do it better

Re: good list for /etc/hosts

I use MVPS' host file on both my linux and windows computers because of security(malware ads), privacy(trackers), and battery life(those interesting ads are most likely flash ads will kills my Single core Pentium M CPU and NoScripts/ABP is not available on every browser I use).

As for the ads are paying for this site so you should not block the ads, you have to remember the "90-9-1 Rule for Participation Inequality"- basically 90% of users are lurkers who never contribute, 9% of users contribute a little, and 1% of users account for almost all the action. IMO Less than 1% use more than the default built in browser ad-blocking software(at most maybe ABP if on firefox). I with Modified host files, ABP, NoScripts, and RamDisk for my browser's cache(when using windows) offset  ad viewing with spreading the holy word of #!/Linux whenever I can.

Terminal: There are many like it, but this one is mine. My Terminal is my best friend. It is my life.
I must master it as I master my life. My Terminal, without me, is useless. Without my Terminal, I am useless.
Currently using #! 9.04
Specs of my rig

Re: good list for /etc/hosts

re: google ads:

http://omploader.org/tMmNkeg

<'(((><  I am not ashamed of the gospel, because it is the  ><)))'>
<'(((><  power of God, the salvation of everyone who believes.  ><)))'>

EeePC 900a : #! 9.04 : Atom 1.60 GHz : 1 GB RAM : 4 GB SSD

Re: good list for /etc/hosts

I think the only ads worth blocking are flash ads.  They are generally very annoying.  Text ads are usually fairly unobtrusive, and help pay for the bandwith and hosting for sites.

My blog

Re: good list for /etc/hosts

if im not wrong then u cant block text ad, only object ads (like images, flash, script). What adblock program does with text ads is modify layout to hide the text but text ads are served anyway. So no guilty feeling is required.

Re: good list for /etc/hosts

minimalist comrade wrote:

if im not wrong

You're wrong.

Re: good list for /etc/hosts

i'm not coming down on either side of the 'ads are good' vs. 'ads are bad' topic, but for people with lower bandwidth who like to kill the known ad-serving hosts, here's a great script to update your hosts file and get an updated list from the net periodically.  i've posted it below, (note: std #! explosion disclaimer applies)  if i can find the original source, i'll link back to it. it's set up pretty simply, so you can change the script to whatever source you like to use (i know mvps is popular.)

#!/bin/bash
# Hosts file updater
# Originally written by Andy Short circa 2002
# You will probably need root or su rights to access /etc/hosts
# modified by killermist with (what seem to be) some logical tweaks
# 20090712 alfredo (1) Added checks for required applications;
#                  (2) put 'footprint' text into the modified hosts file.
# Debian users will need the package "sysutils" as this script uses dos2unix
# $ sudo apt-get install sysutils
#
HFSERVER="http://hostsfile.mine.nu.nyud.net"
HFILE="hosts.zip"
ORIGFILE="/etc/hosts.original"

clear
echo "-------------------------------------------------------------"
echo "This script will update your Hosts file to the latest version"
echo "Your original Hosts file will be renamed to $ORIGFILE"
echo "-------------------------------------------------------------"
echo ""

echo "Checking for required applications..."; ABORT=0
echo ... wget    ; builtin type -P wget     &>/dev/null || { echo "wget is missing."; ABORT=1; }
echo ... unzip   ; builtin type -P unzip    &>/dev/null || { echo "unzip is missing."; ABORT=1; }
echo ... dos2unix; builtin type -P dos2unix &>/dev/null || { echo "tofrodos (which contains dos2unix) is missing."; ABORT=1; }
echo ... grep    ; builtin type -P grep     &>/dev/null || { echo "grep is missing."; ABORT=1; }
# this is just to test the test!
#echo ... crap     ; builtin type -P crap     &>/dev/null || { echo "crap is missing."; ABORT=1; }
#echo ABORT is $ABORT
if [ $ABORT != 0 ] ; then
    echo One or more required applications are missing. Aborting now ...
    exit 1
fi
echo "OK"
echo ""

if [ ! -f "$ORIGFILE" ] ; then
  echo "Backing up your previous hosts file.."
  cp -v /etc/hosts $ORIGFILE # I like verbose file operations.  Can be less verbose if necessary.
fi

echo "Retrieving $HFILE from $HFSERVER"
echo ""
wget -O /tmp/$HFILE $HFSERVER/$HFILE
unzip -p /tmp/$HFILE | dos2unix > /tmp/hosts
if [ 'grep -c "banner" /tmp/hosts' ];then
    echo "Downloaded and unpacked $HFILE OK"
    echo "Appending host list to original content"  # which was probably there for a reason, like to make sure localhost worked, and possibly even more stuff if part of a corporate LAN
    #cp -f -u /tmp/hosts /etc/hosts
    cat $ORIGFILE  >/etc/hosts
    echo "" >>/etc/hosts # to make sure the original file ends in a new-line so that 2 entries don't end up on the same line, either causing unexpected behavior or not working at all
    echo "#============================================================="   >>/etc/hosts
    echo "# This hosts file has been modified by the script:"               >>/etc/hosts
    echo "#     $0"                                                         >>/etc/hosts
    echo "# with a list of blocked sites obtained from $HFSERVER"           >>/etc/hosts
    echo "# from the original file now saved as $ORIGFILE"                  >>/etc/hosts
    echo "# As a side-effect of this script, any changes you wish to make"  >>/etc/hosts
    echo "# persistent in the hosts file should be made to $ORIGFILE"       >>/etc/hosts
    echo "# because /etc/hosts will be respawned from that file and the"    >>/etc/hosts
    echo "# new list from the server each time this script runs."           >>/etc/hosts
    echo "#============================================================="   >>/etc/hosts
    cat /tmp/hosts >>/etc/hosts
    rm -fv /tmp/hosts* # again, I like verbose file operations.  I like to know what my system is doing.
    echo "Update process complete"
    #echo "-------------------------------------------------------------"
    echo "As a side-effect of this script, any changes you wish to make"
    echo "persistent in the hosts file should be made to $ORIGFILE"
    echo "because /etc/hosts will be respawned from that file and the "
    echo "new list from the server each time this script runs."
    exit
else
    echo "Update failed"
fi

Hell, there are no rules here - we're trying to accomplish something.  - T. A. Edison
http://www.grendelchen.com/  | brummbaer456 at gmail dot com