Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 71

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

  1. #61
    Join Date
    Jun 2011
    Beans
    18

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

    does anyone know of a Hosts file manager for Ubuntu like HostsMan in Windows? i'm just looking for something that i could turn it on/off very easily without having to go thru the terminal so that i could allow a webpage here and there. i'm not too knowledgeable in linux.

  2. #62
    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 bzd454 View Post
    does anyone know of a Hosts file manager for Ubuntu like HostsMan in Windows? i'm just looking for something that i could turn it on/off very easily without having to go thru the terminal so that i could allow a webpage here and there. i'm not too knowledgeable in linux.
    The only program I know is pup advert-block for Puppy Linux. Maybe you can compile it from source/port it to Ubuntu?

    http://murga-linux.com/puppy/viewtopic.php?t=59290

  3. #63
    Join Date
    Jun 2011
    Beans
    18

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

    Quote Originally Posted by mellowchuck123 View Post
    The only program I know is pup advert-block for Puppy Linux. Maybe you can compile it from source/port it to Ubuntu?

    http://murga-linux.com/puppy/viewtopic.php?t=59290
    thanks for the response. Compiling is beyond my knowledge though.

    i'm just trying to find something easy that would allow me to load up all these hosts file blocking lists as well as all the ABP blocking lists and malware lists etc and then when i visit a site and it doesn't work, be able to whitelist it and keep that whitelist when i update the blocking lists every month or so. and blocking all of china and russia would help i've heard. i'm not really sure the best way to do this though - maybe a firewall or the privoxy program would be better?

  4. #64
    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)

    March 25, 2012 HOSTS file.



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

    LISTS USED -

    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/download/hosts.zip
    
    http://hosts-file.net/hphosts-partial.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
    
    http://sysctl.org/cameleon/hosts.win
    
    Spybot S&D Hosts Immunization
    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.

    March 25, 2012 HOSTS file link:

    https://ubuntuone.com/0QsGWlv5mJ1jzRTBZuhOlr



    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.

  5. #65
    Join Date
    Apr 2012
    Beans
    11

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

    Thanks...
    Is there a way of getting "Spybot S&D Hosts Immunization" list from a permanent online address like others?
    In this way, this compilation could be done automatically.
    Or perhaps you might post this compiled hosts file to somewhere with a permanent address/link to save the extra effort of announcing every update.
    Regards,
    Sadi

  6. #66
    Join Date
    Mar 2007
    Location
    Austin, TX, USA
    Beans
    56
    Distro
    Kubuntu 11.04 Natty Narwhal

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

    Can a webpage using javascripts detect if you've blocked their ads via hostfile ? Will there be a line of countermeasures developed for people like us?
    The Institute for Mapping Technology offers GIS training using open source software and education on Deep Web Research

  7. #67
    Join Date
    Jun 2012
    Beans
    212

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

    one question you said I should backup things? How?

  8. #68
    Join Date
    Oct 2006
    Beans
    Hidden!

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

    Hello everybody,

    I just wrote my own script that can check if one of the hostfiles is updated, automatically download the hostfiles from different places, merge them, undupe them, optimize them etc. and install the hostfile on your system.

    After the script is finished you get an email with the difference between the old and the new hostfile. The script also makes a backup of your old hostfile. If anything goes wrong the script stops and you will get an email with the appropriate error message.

    So far, the script works nicely but it is still in beta. Right now I use it for the hostfiles from:

    http://someonewhocares.org/hosts/
    http://winhelp2002.mvps.org/hosts.txt

    but I will add other hostfiles aswell.

    If you guys are interested I will post the script here.

    Just let me know.

    @mellowchuck123 your list of 13 hostfiles is quite impressive. Do you also have the URLs to the text/html version of those files?

    Ot course, I could extend the script that it can handle .zip files but less work is more time for other things...

  9. #69
    Join Date
    Oct 2006
    Beans
    Hidden!

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

    Hello everybody,

    Here is the thread where I posted the script:

    http://ubuntuforums.org/showthread.php?t=2048812

    It now uses 11 different blacklists to create a the hostsfile.

    I hope it is useful to some of you.

  10. #70
    Join Date
    Aug 2009
    Location
    Santa Rosa, California
    Beans
    62
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

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

    How did you make that script? It would be really cool to make my own.
    Last edited by XxionxX; October 27th, 2012 at 01:47 AM.

Page 7 of 8 FirstFirst ... 5678 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
  •