Hacker News new | past | comments | ask | show | jobs | submit login

I see nobody has posted it, so here is a very lightweight alternative - it redirects all known ad-hosting sites to 127.0.0.1

http://someonewhocares.org/hosts




Isn't it better to use something invalid (like 0.0.0.0) instead of 127.0.0.1? If you have a development server on your machine, rerouting ads to 127.0.0.1 means lots of useless requests...


The author briefly discusses this and has made a 0.0.0.0 version available here: http://someonewhocares.org/hosts/zero/


I use this as well (The zero version) but I wonder if there are any performance hits from doing this. I would think not but I've had sites (on desktop and mobile) lock up while waiting for something to load. Most of the time I assume this is some scrolling or "navigation" plugin that hasn't loaded yet (and not ads) but I'd love to read an analysis on hosts vs adblock vs µBlock.


It also works on android phones


Don't you need to be rooted to modify your hosts file on Android?


Yes, you need root.


i use the same approach. (https://twitter.com/beanieboi/status/546398095182163968)

it's not as elegant as hiding the HTML elements, you see some question marks on the page if safari couldn't load the resource. but overall i'm pretty pleased and it gets the job done.




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

Search: