You are not logged in.

#1 2012-10-18 19:46:55

graysky
Member
From: The worse toilet in Scotland
Registered: 2008-12-01
Posts: 8,825
Website

hosts-update: automatically append the mvp blocklist to /etc/hosts

This util written by wintervenom has actually been in the AUR for going on 2 years now. 

What it does:
Updates /etc/hosts with the mvps blocklist to prevent thousands of parasites, hijackers and unwanted adware/spyware/privacy websites from working.

Operation is trivial:
1) Edit /etc/hosts.local to match the hostname of your system and adjust the domainname as needed. Also add any hosts that you wish to keep i.e. other PCs on your network.
2) Run /usr/bin/update_hosts as root which will append /etc/hosts.local to the mvps blocklist and apply some post processing writing the final file to /etc/hosts automatically.
3) (Optional) Add a cronjob under root crontab at some interval to keep your /etc/hosts fresh.

AUR: https://aur.archlinux.org/packages/hosts-update
Github: https://github.com/graysky2/hosts-update
Original thread: https://bbs.archlinux.org/viewtopic.php?id=106367

Enjoy!

Last edited by graysky (2013-12-11 17:09:06)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2013-12-11 15:25:47

sknd
Member
From: Brzeszcze, Poland
Registered: 2011-01-20
Posts: 53

Re: hosts-update: automatically append the mvp blocklist to /etc/hosts

does this protect me from anty-piracy ogranisations, like Moblock does?


Jaki koniec świata.Ziemia to nie cały świat ,a tylko mały Wąchock we wszechświecie.

Offline

#3 2013-12-11 17:10:44

graysky
Member
From: The worse toilet in Scotland
Registered: 2008-12-01
Posts: 8,825
Website

Re: hosts-update: automatically append the mvp blocklist to /etc/hosts

I don't believe so... I believe it is targeted at ads and malware.  You can inspect the list at the upstream URL.  As an aside... moblock?  I thought that was a dead project replaced by pgl?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2013-12-11 19:14:42

sknd
Member
From: Brzeszcze, Poland
Registered: 2011-01-20
Posts: 53

Re: hosts-update: automatically append the mvp blocklist to /etc/hosts

yes, you're right, pgl is the new one, i didn't remember his name, so i mentioned moblock, wchich i used long time ago... is there any possibility to use pgl's lists in etc/hosts ?


Jaki koniec świata.Ziemia to nie cały świat ,a tylko mały Wąchock we wszechświecie.

Offline

#5 2013-12-11 19:48:24

graysky
Member
From: The worse toilet in Scotland
Registered: 2008-12-01
Posts: 8,825
Website

Re: hosts-update: automatically append the mvp blocklist to /etc/hosts

Sure you can, but not in this particular tool.  There is a script written by haarp designed to run on a tomato-usb powered router that does just this.  I host the code here: https://github.com/graysky2/adblock

EDIT: I can't remember if it pulls from the same urls as pgl does but you can certainly modify the code to do it.

Last edited by graysky (2013-12-11 19:52:02)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2013-12-12 13:22:03

sknd
Member
From: Brzeszcze, Poland
Registered: 2011-01-20
Posts: 53

Re: hosts-update: automatically append the mvp blocklist to /etc/hosts

o, thanks! and now i found that there's something called hostsblock, it seems exactly waht i'm looking for, I'll try i today.


Jaki koniec świata.Ziemia to nie cały świat ,a tylko mały Wąchock we wszechświecie.

Offline

Board footer

Powered by FluxBB