Hacker News new | ask | show | jobs
by close04 58 days ago
> Two blocked domains with the same hash isn't a problem, they both need to be blocked.

This is a problem if the second one is actually a major useful domain. If HN and adserver have the same hash, you have a problem. This could be described as a false positive for HN.

> Where hash collisions matter is false positives, e.g. if hash(google.com) = hash(adserver.com)

This sounds like the same issue I describe above where you need to use Google but block adserver. Otherwise it's only a problem if you implemented allow lists, right? This is when you explicitly allow Google and implicitly allow adserver along with it because of the hash collision.

1 comments

Sorry was a bit unclear, by two blocked domains I meant two domains in the original blocklist having the same hash, i.e. hn and adserver are both in our desired blocklist in your example
In this case only the one risk flagged in the article and other comments matters: that the hash of a domain you blocked coincides with the hash of a domain you want to access, so they are both blocked. There is no difference between false positive and false negative, it's all one collision leading to one unintended block.