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. …by making large ipset lists for iptables. [1] - https://github.com/firehol/blocklist-ipsets [2] - https://github.com/StevenBlack/hosts [3] - https://www.uceprotect.net/en/index.php?m=6&s=0 [4] - https://www.spamcop.net/fom-serve/cache/291.h…
  2. Here is the readme: https://github.com/StevenBlack/hosts If that could be more clear, please tell me how?
  3. Your browser shouldn't even be capable of resolving advertising.com You can use https://github.com/StevenBlack/hosts as your hosts file, but even better is TLD and wildcard domain blocking with dnsmasq or dnscrypt-proxy.
  4. More generally: https://github.com/StevenBlack/hosts
    comment by myroon5 · 2022-05-28 · in Blocklist of all Facebook domains (2016)
  5. Exactly that. I would recommend something like this [0]. [0]: https://github.com/StevenBlack/hosts
  6. it's probably something like this: https://github.com/StevenBlack/hosts
  7. This is my go-to: https://github.com/StevenBlack/hosts It helps a lot.
  8. …) directly off my router, and I (probably somewhat redundantly) also use a hosts blocker ( https://github.com/StevenBlack/hosts ) on my non-phone machines. It's annoying for the first day or two, but you get used to it really quickly.
  9. …my hosts[] filter, as it includes amplitude.com Pity as they are great, so I often pass on them! [] https://github.com/StevenBlack/hosts
  10. For what it's worth here's what I do: I run my own /etc/hosts file based on : https://github.com/StevenBlack/hosts This should block the popular ad-ware companies. I also browse with Brave, and use their inbuilt "shields" feature to block…
  11. …the NoScript addon on Firefox and auto filter out all IPs that end up on Steven Black's Host list - https://github.com/StevenBlack/hosts That takes care of a significant chunk of the ever increasing pollution. The adtech world is totally…
    comment by yann2 · 2021-07-30 · in Ask HN: Decline in Web's Quality?
  12. …or walking past the junk food. [0] crowd sourced hosts files to block ads, social-media and porn: https://github.com/StevenBlack/hosts
  13. …where they show that stuff. The best solution to that is to avoid those sites if possible. [1] https://github.com/StevenBlack/hosts [2] https://github.com/EnergizedProtection/block
  14. - Install ZRAM on your Linux distro - Ublock Origin is a must. If not: https://github.com/StevenBlack/hosts . Clone it, backup /etc/hosts, append the content of the /hosts subfiles MINUS the localhost and ::1 lines. - Use a bare window…
    comment by anthk · 2021-07-07 · in The Old Computer Challenge
  15. …and securemetrics.apple.com:443 are still contacted. People messing with ocsp.apple.com:80 ( https://github.com/StevenBlack/hosts/issues/1460 ) also need to be aware of ocsp2.apple.com:443. The iAdSDK setting is somewhat respected, but all…
  16. Use /etc/hosts based blocking, e.g. https://github.com/StevenBlack/hosts This way you become mostly invisible to the ad and malware industry, no matter which browser you use. Have JavaScript toggle next to address bar and keep JavaScript…
  17. …that temporarily for testing, and exchange it with some host-based solution, for instance this https://github.com/StevenBlack/hosts no matter which OS your are on. Then see if it feels faster. If you are already doing it this way, forget…
    comment by LargoLasskhyfv · 2021-06-06 · in The modern web on a slow connection (2017)
  18. Update your hosts file with something like this https://github.com/StevenBlack/hosts
  19. …surf the web in 2021 without an ad-block? I'd be more interested in opinions about the article. https://github.com/StevenBlack/hosts https://addons.mozilla.org/en-US/firefox/addon/ublock-origin...
    comment by DyslexicAtheist · 2021-05-06 · in Burning Man: The Ascent of D H Lawrence
  20. …web as such, respecting the original intent of this DNT option. I wrote a bit about this [here]( https://github.com/StevenBlack/hosts/issues/1346#issuecommen... ), pasted below: > I feel like a lot of this comes down to what "track" means,…
    comment by Booligoosh · 2021-04-16 · in How to fight back against Google FLoC
  21. …DNS fiddling. This goes through https://guce.advertising.com/collectIdentifiers to track users. https://github.com/StevenBlack/hosts/issues/1370
  22. …can be reduced (and sped-up) with a local cache (dnsmasq - or better yet dnscrypt-proxy[2]). [1] https://github.com/StevenBlack/hosts [2] https://github.com/DNSCrypt/dnscrypt-proxy
    comment by DyslexicAtheist · 2021-03-24 · in Ask HN: Digital Nomads: What's Your Setup?
  23. …A more complete list of things worth adding to /etc/hosts here (I'm not affiliated with this): https://github.com/StevenBlack/hosts
  24. Edit: A warm mention of Steven Black's hosts, https://github.com/StevenBlack/hosts for those interested in more of OP's subject. Use both methods instead of just one. They differ in nature, and can be implemented at different perimeters of…
    comment by Jiocus · 2021-02-11 · in Block Facebook Servers
  25. I added this to my /etc/hosts https://github.com/StevenBlack/hosts What is the advantage of having DNS on a separate device other than that it provides ad blocking for multiple devices?
    comment by dheera · 2021-01-26 · in Firefox 85 cracks down on supercookies
  26. …matter. I have a cron job download a prefilled copy from a popular github repository [1] daily. [1] https://github.com/StevenBlack/hosts
  27. …of questionable sourcing]. [0] https://gitlab.com/The_Quantum_Alpha/the-quantum-ad-list/-/i... https://github.com/StevenBlack/hosts/issues/1487 [1] https://github.com/StevenBlack/hosts
    comment by Jap2-0 · 2021-01-04 · in URL shorteners set ad tracking cookies
  28. …[1] https://github.com/blocklist-tools/github-history-generator [2] https://github.com/StevenBlack/hosts
  29. …list[1] in to /etc/hosts Not sure what, apart from extra cpu cycles, pihole adds over this. [1] - https://github.com/StevenBlack/hosts
    comment by pmoriarty · 2020-10-17 · in Steps For Better Online Privacy
  30. …I do not see WPM and ACC stats though. It just shows empty placeholder for those. I use PiHole and https://github.com/StevenBlack/hosts to block ads. I see that the google analytics is not resolved properly in dev tools. Is that the issue…
  31. …I can recommend Steven Black's lists. He curates and consolidates several of the most famous ones: https://github.com/StevenBlack/hosts He maintains several variants according to themes you may want to ban (adware, malware, fakenews...).…
    comment by pa7x1 · 2020-09-20 · in uMatrix has been archived
  32. I've used this successfully for years. https://github.com/StevenBlack/hosts While not your traditional ad blocker done via browser extension, it does the job quite well and blocks the requests at the OS level. I'm not the author or…
  33. …takes, if you have any, on the subject of ethical tracking. What to do about Plausible and Fathom? https://github.com/StevenBlack/hosts/issues/1346
    comment by stblack · 2020-07-11 · in Migrating Away from Google Analytics
  34. …that I put in to /etc/hosts.[1] Using this combination, I virtually never see any ads. [1] - https://github.com/StevenBlack/hosts
  35. …regex) so that punicode domains (any domains matching "xn--") are sinkholed to 0.0.0.0 as well. [1] https://github.com/StevenBlack/hosts
  36. for good measure, here are 83k additional domains: https://github.com/StevenBlack/hosts
  37. …see how it might seem that way — I'm Steven Black. I can point to thousands of combined... * issues https://github.com/StevenBlack/hosts/issues?q=is%3Aissue+is%... * ...pull requests... https://github.com/StevenBlack/hosts/pulls?q=is%3Apr+i…
    comment by stblack · 2020-06-06 · in All-in-One DNS block list
  38. …Disclosure: Some of us have been actively curating such amalgamated lists for a long time. https://github.com/StevenBlack/hosts
    comment by stblack · 2020-06-06 · in All-in-One DNS block list
  39. …and trackers are blocked system wide. A few block lists that I would recommend: 1. Steven Hosts - https://github.com/StevenBlack/hosts 2. Adguard DNS - https://github.com/AdguardTeam/AdguardSDNSFilter 3. disconnect.me The amount of DNS…
    comment by praveenweb · 2020-06-06 · in All-in-One DNS block list
  40. Also a shameless plug for the extensible, amalgamated hosts file I actively curate: https://github.com/StevenBlack/hosts
    comment by stblack · 2020-05-22 · in Should I Block Ads?
  41. …ability to have a pi-hole sized blacklist. The main source of pi-hole’s blacklist is this Git repo: https://github.com/StevenBlack/hosts That is about 60,000 hosts, so I added MaraDNS support to have up to 500,000 blacklisted names. Since…
    comment by strenholme · 2020-05-04 · in Ad blocking with Raspberry Pi and Pi-hole
  42. …deploy/update (remotely via Ansible or something else) custom hosts file on their workstations. https://github.com/StevenBlack/hosts
  43. i should mention, it also acts as a pi-hole via dnsmasq configured with these hosts: https://github.com/StevenBlack/hosts
  44. I'm using simple https://github.com/StevenBlack/hosts . Puts everything into hosts file.
  45. yep, i do this on my edge OPNSense appliance, except with https://github.com/StevenBlack/hosts
  46. …53 gets re-directed using IP masquerading to my local DNS server which uses the blocklists from https://github.com/StevenBlack/hosts . By coincidence since I did that I need to do a hard reboot of my Mi Box android tv device everyday as…
    comment by tiew9Vii · 2020-02-10 · in Tracking systems of TV streaming devices
  47. …It works even better when paired with a PiHole [2] to protect all devices on the network. [1] https://github.com/StevenBlack/hosts [2] https://pi-hole.net/
    comment by lightswitch05 · 2020-02-05 · in Wacom tablets track every app you open
  48. …some of those crowdsourced lists of hosts files to ban trackers, ad networks, and the like, i.e. https://github.com/StevenBlack/hosts or https://github.com/notracking/hosts-blocklists , you can use pi-hole even as a docker container…
    comment by drKarl · 2020-02-05 · in Ask HN: How to take your privacy back?
  49. Adguard Pro in VPN mode works system wide on iOS. I personally use this filter list https://github.com/StevenBlack/hosts
  50. I think this GitHub one is a bit better documented maybe, but both look good. https://github.com/StevenBlack/hosts