That's awesome.
So could I get a little more detail here about why git is important? Are you making a init script to pull the file directly into /etc/hosts at boot (or at an interval)?
Well, it's a little bit of work.
The point is that several people can maintain their own branches of /etc/hosts and use git to keep them up to date and propagate their additions.
I'd just clobber /etc/hosts from the repo file with cp -f, whenever the repo is changed, no need for any cron/init automation.
Re:This Is Why Your Website Is Slow
by ImprovedSilence on Tuesday November 29, 2011 @04:25PM
(#3292248)
awesome, I saw this original article the other day, and thought it'd be awesome if it was on github (didn't think to, as it wasn't my work..) I was curious about how often it was updated, seems i've got an answer.
Just out of curiosity, how does one go about figuring out what sites to block and keeping this up to date and relevant? That would seem like a lot of effort?
https://github.com/chalst/pollockhostsfork
I'll see how good I am about updating this: there seem to be 2-4 changes most weeks.
Postscript - I've emailed Dan Pollock to see if he thinks this git repo is worthwhile. There is already a version of the file on Github at https://gist.github.com/399642, but it is not updated and is a year and a half old.