Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 71

Thread: HOWTO: Amend your hosts file to block ads (by site)

  1. #41
    Join Date
    Apr 2005
    Beans
    22
    Distro
    Kubuntu 6.10 Edgy

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Quote Originally Posted by mellowchuck123 View Post
    November 4, 2011 HOSTS file.


    This is a combination of 12 up-to-date(as of this moment) lists that block ads and sites with malwares(viruses, trojans, worms etc.)

    The file is optimized, sorted & is in 0.0.0.0 format.

    MAKE SURE YOU COPY THE ENTIRE FILE TO /etc/hosts using root or sudo.

    _DO NOT_ REPLACE THE FIRST TWO LINES IN YOUR HOSTS FILE-

    127.0.0.1 localhost
    127.0.1.1 YOUR HOST NAME GOES HERE


    If you already have blocking entries, add this list to the bottom of your hosts file.


    November 4, 2011 HOSTS file link:

    http://ubuntuone.com/4o5KKT545F9M4WZUpKO7PB



    Side note- You might want to install an ad-blocking extension in your browser so you don't see the annoying "page not found" error where ads were before.
    Awesome. Perfect.

  2. #42
    Join Date
    Nov 2011
    Beans
    1

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Nice work and very much appreciated.

  3. #43
    Join Date
    Jun 2006
    Beans
    106
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Quote Originally Posted by mellowchuck123 View Post
    snip
    Thanks for the continuous updates!

    Quick question: have you checked the sites listed?
    f.i. hidemyass.com is blocked, yet I was unaware that this is a problematic site.

    I guess part of the list is also from a 'not desireable' list, perhaps used in companies. So it might be something to provide multiple such lists we can paste together to fit our needs.

    thanks

  4. #44
    Join Date
    Jul 2011
    Location
    College Park, Maryland
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Smile Re: HOWTO: Amend your hosts file to block ads (by site)

    Quote Originally Posted by TheTank View Post
    Thanks for the continuous updates!

    Quick question: have you checked the sites listed?
    f.i. hidemyass.com is blocked, yet I was unaware that this is a problematic site.

    I guess part of the list is also from a 'not desireable' list, perhaps used in companies. So it might be something to provide multiple such lists we can paste together to fit our needs.

    thanks
    All lists used are malwares and ads blocking hosts files. Sometimes these list maintainers make mistakes.

    I can only check the sites I frequent. For instance- I use meebo.com and found that for whatever reason it was added to one of the lists I use to make this hosts file; it is now not blacklisted and I am in process of uploading hosts file for today. Therefore, if you find a entry that you believe shouldn't be in this list, I will gladly take it out if you give me a valid reason. I don't know what hidemyass.com is, but I'm assuming it's a proxy service; have you tried Tor? Do you like Tor if so? If you don't like Tor and prefer this site, why is this so?


    -Chuck
    Last edited by mellowchuck123; November 23rd, 2011 at 01:42 AM.

  5. #45
    Join Date
    Jul 2011
    Location
    College Park, Maryland
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Talking Re: HOWTO: Amend your hosts file to block ads (by site)

    November 21, 2011 HOSTS file.


    This is a combination of 9 up-to-date(as of this moment) lists that block ads and sites with malwares(viruses, trojans, worms etc.)

    The file is optimized, sorted & is in 0.0.0.0 format.

    MAKE SURE YOU COPY THE ENTIRE FILE TO /etc/hosts using root or sudo.

    _DO NOT_ REPLACE THE FIRST TWO LINES IN YOUR HOSTS FILE-

    127.0.0.1 localhost
    127.0.1.1 YOUR HOST NAME GOES HERE


    If you already have blocking entries, add this list to the bottom of your hosts file.


    November 21, 2011 HOSTS file link:

    http://ubuntuone.com/7333ex5gkroKUXKG44bfS7



    Side note- You might want to install an ad-blocking extension in your browser so you don't see the annoying "page not found" error where ads were before.
    Last edited by mellowchuck123; November 23rd, 2011 at 01:42 AM.

  6. #46
    Join Date
    Aug 2007
    Location
    idaho
    Beans
    394
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: HOWTO: Amend your hosts file to block ads (by site)

    well the host file blocked my favorite flash video sites and all i really want is to block porn and also to make sure that the host file cannot be changed by any site but my own computer so i just copy and pasted the porn host file to my curent host file (of course after i made a backup of my original
    Code:
    sudo cp /etc/hosts /etc/hosts.old
    )

    then i simply chmod-ed my host file to take away the write attribute.

    Code:
    sudo chmod a-w /etc/hosts
    these lines are a good idea if you go to sites that try to hack/hijack your host file and make it point to their domain only.
    by having a copy of your original and then making the host file ro then you can control what sites can be accessed from your computer (i.e. facebook, google, bing, hulu, etc.)
    Last edited by jmate24; November 22nd, 2011 at 10:42 AM.
    If Ubuntu had 31 flavors then we could call it Baskin' Ubuntu.

  7. #47
    Join Date
    Jul 2011
    Location
    College Park, Maryland
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Question Re: HOWTO: Amend your hosts file to block ads (by site)

    Quote Originally Posted by jmate24 View Post
    well the host file blocked my favorite flash video sites and all i really want is to block porn and also to make sure that the host file cannot be changed by any site but my own computer so i just copy and pasted the porn host file to my curent host file (of course after i made a backup of my original
    Code:
    sudo cp /etc/hosts /etc/hosts.old
    )

    then i simply chmod-ed my host file to take away the write attribute.

    Code:
    sudo chmod a-w /etc/hosts
    these lines are a good idea if you go to sites that try to hack/hijack your host file and make it point to their domain only.
    by having a copy of your original and then making the host file ro then you can control what sites can be accessed from your computer (i.e. facebook, google, bing, hulu, etc.)
    Which flash sites are blocked in the HOSTS file posted yesterday?

  8. #48
    Join Date
    Jul 2011
    Location
    College Park, Maryland
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Here are the 9 lists I currently use if you would like to use your own script instead and sort and update your own HOSTS file --

    Code:
    http://www.mvps.org/winhelp2002/hosts.zip
    
    http://hphosts.gt500.org/hosts.zip
    
    http://updates.it-mate.co.uk/updates.asp
    
    http://hosts-file.net/ad_servers.asp
    
    http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext
    
    http://someonewhocares.org/hosts/hosts
    
    http://support.it-mate.co.uk/downloads/HOSTS.txt
    
    http://hostsfile.mine.nu/Hosts
    
    http://www.securemecca.com/Downloads/hosts.txt

  9. #49
    Join Date
    Jun 2006
    Beans
    106
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Quote Originally Posted by mellowchuck123 View Post
    All lists used are malwares and ads blocking hosts files. Sometimes these list maintainers make mistakes.

    I can only check the sites I frequent. For instance- I use meebo.com and found that for whatever reason it was added to one of the lists I use to make this hosts file; it is now not blacklisted and I am in process of uploading hosts file for today. Therefore, if you find a entry that you believe shouldn't be in this list, I will gladly take it out if you give me a valid reason. I don't know what hidemyass.com is, but I'm assuming it's a proxy service; have you tried Tor? Do you like Tor if so? If you don't like Tor and prefer this site, why is this so?
    -Chuck
    Thanks for the reply!

    @hidemyass:
    yes, it is simply a web proxy and I sometimes use it to a) check if there is something blocking my access to a site (censor) or if it is really down and b) do the same with content, f.i. when youtube blocks content because I live in the wrong country.

    Plus such a censor tool need not only be national but also company thing.
    Hence why I thought it might be a 'company block list' that filters out sites you can use to avoid sites blocked by companies.
    Which in some cases is fine.

    @Update:
    Ok, will do. Thanks!

  10. #50
    Join Date
    Jul 2011
    Location
    College Park, Maryland
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Amend your hosts file to block ads (by site)

    Quote Originally Posted by TheTank View Post
    Thanks for the reply!

    @hidemyass:
    yes, it is simply a web proxy and I sometimes use it to a) check if there is something blocking my access to a site (censor) or if it is really down and b) do the same with content, f.i. when youtube blocks content because I live in the wrong country.

    Plus such a censor tool need not only be national but also company thing.
    Hence why I thought it might be a 'company block list' that filters out sites you can use to avoid sites blocked by companies.
    Which in some cases is fine.

    @Update:
    Ok, will do. Thanks!
    I willl remove hidemyass.com from my next update

    -Chuck

Page 5 of 8 FirstFirst ... 34567 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •