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.
Re: HOWTO: Amend your hosts file to block ads (by site)
Quote:
Originally Posted by
bzd454
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
Re: HOWTO: Amend your hosts file to block ads (by site)
Quote:
Originally Posted by
mellowchuck123
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?
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
:guitar:
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.
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
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?
Re: HOWTO: Amend your hosts file to block ads (by site)
one question you said I should backup things? How?
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...;-)
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.
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.