News for hackers. Stuff that matters.
Re:This Is Why Your Website Is Slow by joezydeco on Tuesday November 29, 2011 @02:12PM (#3291699)
I have a small number of sites blocked in /etc/hosts but a little searching found this hosts.txt file that seems to be updated pretty regularly. Gonna give it a try.

http://someonewhocares.org/hosts/

Re:This Is Why Your Website Is Slow by jonursenbach on Tuesday November 29, 2011 @02:25PM (#3291760)
Wish this were in a git repository.
Re:This Is Why Your Website Is Slow by chalst on Tuesday November 29, 2011 @03:28PM (#3292024)
Your wish is my command:

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.

Re:This Is Why Your Website Is Slow by joezydeco on Tuesday November 29, 2011 @03:45PM (#3292091)
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)?

Re:This Is Why Your Website Is Slow by chalst on Tuesday November 29, 2011 @03:57PM (#3292137)
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?

Re:This Is Why Your Website Is Slow by stock_toaster on Tuesday November 29, 2011 @04:00PM (#3292149)
I added a few things to my hosts file for ad-blocking (doubleclick, etc), and Chrome has since started behaving oddly... The back button reloading the same page and adding another history element, etc.

Maybe due to javascript trying to call things that don't exist? Not sure. Just be aware that hosts blocking can cause odd page results on occasion, because of content fetch failures (as apposed to noscript/adblock which often stop the request from even happening).