Hacker GitHub

← All repos

StevenBlack/hosts

View on GitHub ↗ ★ 31,363 Python

🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.

244 mentions on Hacker News by 168 people: 21 stories, 223 comments · first 2013-02-22 · latest 2026-10-07

Mentions per year 244 mentions · busiest year 2019 (41)
20082026
  1. https://github.com/StevenBlack/hosts and you don't need a device.
    comment by paulcarroty · 2018-08-07 · in Pi-Hole: Why You Need a Network-Wide Ad-Blocker
  2. …don't like AMP and don't mind the occasional broken site. But it's definitely not for everyone. [1] https://github.com/StevenBlack/hosts [2] https://github.com/StevenBlack/hosts/issues/657
    comment by lightswitch05 · 2018-08-04 · in One Year Without AMP
  3. …Store. Jason Donenfeld, Wireguard's author, has a Patreon page: https://www.patreon.com/zx2c4 [0] https://github.com/StevenBlack/hosts
  4. A good solution I've found for ad blocking is using the following hosts file: https://github.com/StevenBlack/hosts Which sinkholes every known ad/malicious domain. It's been pretty useful, and it hasn't broken nothing important yet.
    comment by trash_panda · 2018-07-28 · in An update on uBlock
  5. …I use a Pi-hole as well with several block list sources, my favorite being Steven Black's hosts: https://github.com/StevenBlack/hosts
    comment by move-on-by · 2018-07-05 · in Smart TVs Track More Than What’s on Tonight
  6. This too was a problem for me (and sometimes continues to be). I've been using `hosts` ( https://github.com/StevenBlack/hosts ) to block all of the social sites so I have to rethink my decision to visit one. It's enough of a hiccup to stop…
    comment by wildmindwriting · 2018-06-15 · in Ask HN: What has the past 12 months taught you?
  7. …for you. Try the variant with the social media blocking if you really want to go cold turkey. https://github.com/StevenBlack/hosts
  8. By using something like this: https://github.com/StevenBlack/hosts I have effectived block lots of analytic service. I can see how well it works when I open Chrome Dev Tool aand see bunch of console error due to js tracking fail to load.
  9. …the best for blocking adware, malware, fakenews, gambling , porn and social media outlets. [1] - https://github.com/StevenBlack/hosts/
    comment by joeblau · 2018-03-21 · in Blocklist Facebook domains
  10. …More complete and also has hosts for other social outlets, ad networks and trackers to block. https://github.com/StevenBlack/hosts/
    comment by joeblau · 2018-03-20 · in Blocklist Facebook domains
  11. …be less, but more than 16. Even at that, you're right it would definitely reduce the size. - [1] https://github.com/StevenBlack/hosts/
    comment by joeblau · 2018-03-20 · in Blocklist Facebook domains
  12. Looks like this is already covered by the "Social" add-on to StevenBlack's hosts: https://github.com/StevenBlack/hosts/blob/master/extensions/...
    comment by bhauer · 2018-03-20 · in Blocklist Facebook domains
  13. I don't have a list that I can easily share, but you can curate your own off of https://github.com/StevenBlack/hosts
    comment by amarka · 2018-03-20 · in Blocklist Facebook domains
  14. …for cases I don't catch with the /etc/hosts approach (e.g. disallowing e.g. remote fonts) [1] https://github.com/StevenBlack/hosts
  15. …block all tracking servers at the hosts level by adding rules in your /etc/hosts. I've been using https://github.com/StevenBlack/hosts for a few years now and it's incredibly useful.
  16. …on my phone. A little lower level, I have a modified hosts file which blocks social media sites: https://github.com/StevenBlack/hosts Obviously it is possible to circumvent all of these self-imposed obstacles, but taking a couple of…
    comment by mxschumacher · 2018-01-25 · in Why social media bosses don’t use social media
  17. …It certainly kills of most of the pop-ups I run into. [1]: https://github.com/2ndalpha/gasmask [2]: https://github.com/StevenBlack/hosts
  18. Regarding #3, I'd recommend https://github.com/StevenBlack/hosts/
  19. I've used https://github.com/StevenBlack/hosts for years now, and any close- and extended-family laptop or computer I touch gets it either silently or with some explanation if they ask me what I'm doing. Noone has ever complained. My only…
    comment by folknor · 2017-11-19 · in A Guide to Not Getting Hacked
  20. …cannot files from Github or any https site[0]. There are non-Github mirrors listed in the table at https://github.com/StevenBlack/hosts which I have been able to use successfully. [0]: https://github.com/2ndalpha/gasmask/issues/90
  21. …different incarnations and it is generally smooth. It was also quite educational to assemble. [1] https://github.com/StevenBlack/hosts [2] [3] dnsmasq isn't necessary as dnscypt-proxy is now able to block domains and IPs and of caching…
  22. …you because they have their button/icon on nearly every random homepage). A great selection is at https://github.com/StevenBlack/hosts
    comment by dualogy · 2017-10-29 · in I cured my tech fatigue by ditching feeds
  23. I've already got that covered[1]. …/~ cat /etc/hosts | wc -l 50773 [1] - https://github.com/StevenBlack/hosts
    comment by joeblau · 2017-09-12 · in Facebook, You Needy Sonofabitch
  24. Use separation of concerns. Block ads / tracking outside the browser, eg using a hosts blacklist: https://github.com/StevenBlack/hosts This allows you to use any browser. I've found Firefox to be buggy and slow on OS X so I use Chrome.…
  25. There's also https://github.com/StevenBlack/hosts
  26. …argue much, I use Ghostery and also this host list which means I usually don't see those things: https://github.com/StevenBlack/hosts
  27. For those who are technically inclined: https://github.com/StevenBlack/hosts
    comment by horsecaptin · 2017-06-06 · in Apple adds a tracker blocker to desktop Safari
  28. I also use a hosts file block to avoid tracking: https://github.com/StevenBlack/hosts
    comment by jf · 2017-05-22 · in Get your loved ones off Facebook
  29. …ub.com/pi-hole/pi-hole/wiki/Customising-sources-... The most comprehensive of the lists appears to be https://github.com/StevenBlack/hosts , which is the same list I use for DNS filtering on my DD-WRT router. Seems to work pretty well.
  30. …request for *.facebook.com This is true, which is why you need a better list. Like one of these: https://github.com/StevenBlack/hosts (There are lots of others out there if one of those doesn't suit your fancy.) These things will never be…
  31. That's probably why it's included in "fakenews" category on https://github.com/StevenBlack/hosts
  32. …HTTP 301), or you could follow the chain of redirects and apply your rules to the terminal URL. [1] https://github.com/StevenBlack/hosts
  33. …potentially others. You can optionally invoke extensions to block additional sites by category. || https://github.com/StevenBlack/hosts Direct link: https://raw.githubusercontent.com/StevenBlack/hosts/master/h... Also, I think OpenDNS…
  34. Modify your hosts file to block all porn domains. Here is an extremely popular list on github: https://github.com/StevenBlack/hosts . It can block malware, adware, porn, gambling, and social sites. I personally use it for all of those and…
    comment by am_i_down · 2017-03-11 · in Any open source porn blocking setups?
  35. …hosts file on my system to block most of the ad-networks and metrics tracking sites. Check out https://github.com/StevenBlack/hosts
  36. I use: https://github.com/StevenBlack/hosts Works amazing.
  37. https://github.com/StevenBlack/hosts
    comment by driverdan · 2016-11-25 · in Brew commands send data to Google Analytics
  38. It might be this one from another comment https://github.com/StevenBlack/hosts
  39. …your assertion is valid, even though it was sarcastic, that it is an amazing use of one's time. [0] https://github.com/StevenBlack/hosts
  40. …hosts file on your system, if you have Linux, just replace your existing /etc/hosts file with this https://github.com/StevenBlack/hosts This will kill 90% of popups and autoloading, for the others.. 2. If you use Chrome, use the option…
  41. I've set up a cronjob to pull the latest hosts file from Steven's aggregated list https://github.com/StevenBlack/hosts
  42. You could also try https://github.com/StevenBlack/hosts to block ads. Quoting from the description: Extending and consolidating hosts files from a variety of sources like adaway.org, mvps.org, malwaredomains.com, someonewhocares.org,…
  43. …I think it's wrong to attribute all of it to malice. Personally, I set the host file to use https://github.com/StevenBlack/hosts in order to block ads on every computers I touch. I also often use software that manage the host file and…
    comment by Raphmedia · 2016-09-28 · in Let 'localhost' be localhost
  44. I use this source, which seems to be a pretty good aggregation of several hosts file sources: https://github.com/StevenBlack/hosts
    comment by nathanaldensr · 2016-09-13 · in Adblock Plus now sells ads
  45. …I wish I could use this on my phone. EDIT: Looks like I should switch to the https://github.com/StevenBlack/hosts source, as it includes the one I referenced plus a lot more.
  46. I know this is not about ad blockers, but does anybody have any experience of using something like https://github.com/StevenBlack/hosts/blob/master/hosts instead of uBlock Origin? Or even use it in the hosts file of our dd-wrt/openwrt…
  47. This works really well for me, and avoids the overhead of using a browser plugin: https://github.com/StevenBlack/hosts
  48. Good luck Facebook because we have this: https://github.com/StevenBlack/hosts
  49. …Pis but I put it into a Vagrantfile and combined it with block lists similar to Ghostery from https://github.com/StevenBlack/hosts to form https://github.com/benlowry/pihole-extended-hosts A commercial solution similar to that was just all…
    comment by benologist · 2016-08-01 · in DistroWatch Ubuntu Phone review
  50. > One can achieve this locally, on a laptop/desktop, using https://github.com/StevenBlack/hosts I use this with DD-WRT to get network-wide filtering. It's not perfect (only updates on router boot), but good enough for me. Additional…
    comment by stordoff · 2016-07-29 · in Optimal DNS Ad Blocker