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. …many other hosts including Dan Pollock's list. [1] https://someonewhocares.org/hosts/zero/ [2] https://github.com/StevenBlack/hosts
    comment by vidyesh · 2019-01-23 · in Blocking website ads with a hosts file
  2. …potentially others. You can optionally invoke extensions to block additional sites by category. || https://github.com/StevenBlack/hosts Someone will make money selling an ad blocker device that's just a configured Raspberry Pi with a…
  3. …Another idea might be to remove all blocklists in pi-hole, and only add this list: https://github.com/StevenBlack/hosts
  4. …just a pi-hole equivalent that integrates with pfSense) and I only use the Steven Black list: https://github.com/StevenBlack/hosts It seems to be well curated. Breakages are rare, and if there is one, you can file a bug. Works well.
  5. …edit the original post now, but it was just my computer blocking your domain at the hosts level via https://github.com/StevenBlack/hosts I should have realised, but it's the first time using that hosts list has ever stopped a website I've…
    comment by SCdF · 2018-12-15 · in JavaScript growth and third parties
  6. …platforms takes a pretty consistent toll That sucks. :/ https://someonewhocares.org/hosts/ and https://github.com/StevenBlack/hosts/blob/10bba14590738c445c...
  7. …our activities to be used against us in the form of advertisements. [1] https://pi-hole.net [2] https://github.com/StevenBlack/hosts
    comment by move-on-by · 2018-10-30 · in Kids’ Apps Are Crammed With Ads
  8. …a little more flexible than pi-hole since you can use your mobile devices over LTE with it. [0] https://github.com/StevenBlack/hosts [1] https://github.com/StreisandEffect/streisand
    comment by aphextron · 2018-09-26 · in Mmm, Pi-hole
  9. …can blackhole domains. It doesn't work well on very large host files so I gave up trying to import https://github.com/StevenBlack/hosts , but it does work well for smaller lists.
    comment by 8_hours_ago · 2018-09-26 · in Mmm, Pi-hole
  10. There's also Steven Black's host file: https://github.com/StevenBlack/hosts
    comment by SamuelAdams · 2018-09-26 · in Mmm, Pi-hole
  11. …cut between ads & tracking and useful services. [1] https://github.com/lightswitch05/hosts [2] https://github.com/StevenBlack/hosts
    comment by lightswitch05 · 2018-09-26 · in Mmm, Pi-hole
  12. I use a /etc/hosts-based ( https://github.com/StevenBlack/hosts ) approach to add blocking across my machines, but I have found some sites (fansided.com) comes to mind, which detect that I'm blocking and won't let me read them. How easy is…
    comment by rufugee · 2018-09-26 · in Mmm, Pi-hole
  13. …by caching would be an ideal solution for me. __ ¹ https://github.com/lixingcong/dnsmasq-regex ² https://github.com/StevenBlack/hosts
    comment by DyslexicAtheist · 2018-09-06 · in Noisy: Random DNS, HTTP/S traffic noise generator
  14. 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
  15. …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
  16. …Store. Jason Donenfeld, Wireguard's author, has a Patreon page: https://www.patreon.com/zx2c4 [0] https://github.com/StevenBlack/hosts
  17. 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
  18. …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
  19. ▲ 3
    Listing of Hosts Files
    story by vinchuco · 2018-07-04 · 0 comments
  20. 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?
  21. …for you. Try the variant with the social media blocking if you really want to go cold turkey. https://github.com/StevenBlack/hosts
  22. 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.
  23. …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
  24. …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
  25. …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
  26. 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
  27. 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
  28. …for cases I don't catch with the /etc/hosts approach (e.g. disallowing e.g. remote fonts) [1] https://github.com/StevenBlack/hosts
  29. …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.
  30. …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
  31. …It certainly kills of most of the pop-ups I run into. [1]: https://github.com/2ndalpha/gasmask [2]: https://github.com/StevenBlack/hosts
  32. Regarding #3, I'd recommend https://github.com/StevenBlack/hosts/
  33. ▲ 1
    Unified hosts file with base extensions
    story by reimertz · 2017-12-06 · 0 comments
  34. 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
  35. …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
  36. …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…
  37. …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
  38. 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
  39. 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.…
  40. There's also https://github.com/StevenBlack/hosts
  41. …argue much, I use Ghostery and also this host list which means I usually don't see those things: https://github.com/StevenBlack/hosts
  42. 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
  43. ▲ 1
    HOSTS file compilation for blocking unwanted web connections
    story by matthberg · 2017-05-30 · 0 comments
  44. 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
  45. …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.
  46. …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…
  47. That's probably why it's included in "fakenews" category on https://github.com/StevenBlack/hosts
  48. …HTTP 301), or you could follow the chain of redirects and apply your rules to the terminal URL. [1] https://github.com/StevenBlack/hosts
  49. …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…
  50. 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?