Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The issue with that, in Windows at least, is that host lookups become a lot slower with a larger hosts file; a local caching DNS server with a block list is possibly a better solution, and one I think is already adopted by some.


Another issue with this design is that Adblock extensions hide the blocked elements, using the hosts file leaves loads of 404's all over websites and it looks rather ugly.


Way back when, I wrote a simple web server that ran on localhost that served empty files for any .html, .js, etc. request and 1x1 pixel images for any .gif, .jpg, etc. request.

It worked pretty good. As a poster upthread noted, though, the big issue with this approach is maintaining the list.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: