HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
lightswitch05
hosts
Security & Privacy2018–2023
lightswitch05 / hosts · Archived

hosts

Hostfile blocklist for ads and tracking, updated regularly

3Distinct people
11Mentions
0Explicit recommenders
1.5KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Hostfile blocklist for ads and tracking, updated regularly

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 12:54:37 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year11 dated mentions

Observed mentions: 2018-08-03 13:55:07 UTC to 2023-06-16 11:25:42 UTC.

0123452018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 5 mentions; 0 submissions, 5 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2023

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC404
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC505
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101

What Hacker News says

11 sources
The fonts don't change with my browser, not sure if it's because of Safari or the domain blockers I use. That being said, there was a recent discussion on dev fonts that might be interesting: https://news.ycombinator.com/item?id=25159038 Edit: Seems to be the domains that are blocked, doesn't work with Firefox or Chromium either. I might need to open fonts.google.com Edit Edit: this seems to be the issue https://github.com/lightswitch05/hosts#google-fonts
In Show HN: BeautifulCode, generate beautiful images of your source code
The pihole is nice, but isn’t a silver bullet. I have a roku tv, I hate it, but I think I hate it less then I would hate another smart tv like Samsung or LG. No cameras or built in microphone- although the remote does have a microphone, but I imagine it would kill the batteries quickly if it was listening when it’s not supposed to. Anyways, to add some context, the roku has ads too, the external roku devices do too. The fire sticks also have ads. I run a little hosts blocklist project [0] and recently had a interesting ticket about blocking the roku ads [1]. What it boiled down to is blocking a couple more domains and setting up your home firewall to prevent the TV from bypassing your pihole and talking directly with 8.8.8.8. Given DoH, who knows how long this option will be viable. I don’t watch TV, but my next big Entertainment purchase
Read the rest
will probably be an Apple TV and I’ll remove the TV from the network completely. There are no open wifi connections in my area, so not too worried about it connecting to another network. [0] https://www.github.developerdan.com/hosts/ [1] https://github.com/lightswitch05/hosts/issues/230
In Samsung TV owners complain about increasingly obtrusive ads
So, the domain in question is ms.markosaric.com. Which is a CNAME to custom.plausible.io. uBlock Origin is able to block based on CNAMEs, but it is not a default configuration. PiHole V5 blocks based on CNAME as well, and it is actually enabled by default. I run a little blocklist project [1] and I've had custom.plausible.io blocked in my list since April 8th [2]. So, although I didn't have ms.markosaric.com blocked directly in my list, the PiHole still would have blocked it via CNAME blocking. Also uBlock origin if you have CNAME blocking enabled. [1] https://www.github.developerdan.com/hosts/ [2] https://github.com/lightswitch05/hosts/commit/21fd108ffd2996...
In 13% of my website visitors block Google Analytics
As far as I know, the pi-hole maintainers do not maintain any of the default block lists. I maintain a list [1] that is then feed into the popular host list by Steven Black [2] - which is a default list. I definitely do not want to break things for people and I'm happy to remove any reasonable domains from the list. I wouldn't consider google analytics a reasonable one to remove - but you get the idea. I hate to hear you had a bad experience of it. If my list had the breaking domains for you, I would of loved to have a ticket opened where we could discuss it. Sometimes it isn't clear cut between ads & tracking and useful services. [1] https://github.com/lightswitch05/hosts [2] https://github.com/StevenBlack/hosts
In Mmm, Pi-hole
I love CT logs! I use them to discover subdomains for my hosts file block list [1]. While it can't expand on domains that use wildcard certs - or no certs at all - it's better then nothing since hosts files don't support wildcard blocking. Some things I've learned while working with them: * CertSpotter [2] is a fantastic CT client written in Go that supports pattern matching. I've been running it locally with `.` match pattern and so far have a 4 gig file of unique domain names. I'm excited to see the end result once it catches up to current time. * https://crt.sh/ is a great website to search CT logs and supports wildcards. It's currently the workhorse behind my hosts project, but I hope to remove them as a dependency once my own domain list is caught up to present day * It looks like OP's tool is just a thin client for entrust API [3] a
Read the rest
nd is not actually downloading logs directly - which isn't clear in the article. It made more since once I figured that out because these logs are huge and go back years. [1] https://github.com/lightswitch05/hosts [2] https://github.com/SSLMate/certspotter [3] https://www.entrust.com/ct-search/
In Certificate transparency logs and how they are a gold mine to bug hunters

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.