TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Public Suffix List

76 pointsby aleyanalmost 4 years ago

11 comments

kccqzyalmost 4 years ago
Before you begin to make use of the PSL, consider some of its problems: <a href="https:&#x2F;&#x2F;github.com&#x2F;sleevi&#x2F;psl-problems" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sleevi&#x2F;psl-problems</a><p>FWIW, the link above successfully convinced me and a coworker <i>not</i> to use the PSL.
评论 #27853631 未加载
tylerchralmost 4 years ago
I see the value of this, but I find the wisdom of it to be highly questionable for anything but the highest-level TLDs.<p>For example, it enumerates the domains of many US state school districts:<p><pre><code> k12.pr.us &#x2F;&#x2F; k12.ri.us Removed at request of Kim Cournoyer &lt;netsupport@staff.ri.net&gt; k12.sc.us &#x2F;&#x2F; k12.sd.us Bug 934131 - Removed at request of James Booze &lt;James.Booze@k12.sd.us&gt; k12.tn.us k12.tx.us k12.ut.us k12.vi.us k12.vt.us k12.va.us k12.wa.us k12.wi.us &#x2F;&#x2F; k12.wv.us Bug 947705 - Removed at request of Verne Britton &lt;verne@wvnet.edu&gt; k12.wy.us </code></pre> These seem like awfully specific subdomains to be hardcoded into general-purpose software and entirely reasonable ones to want to set a cookie on or otherwise treat as not-TLDs. The list itself includes evidence of this in the form of exclusions due to bug reports and even makes this point specifically in the case of Hawaii:<p><pre><code> &#x2F;&#x2F; k12.hi.us Bug 614565 - Hawaii has a state-wide DOE login </code></pre> It’s regrettable that browser vendors, even generally responsible ones like Mozilla, feel an incentive to do this.
评论 #27852526 未加载
评论 #27853309 未加载
评论 #27854822 未加载
评论 #27853447 未加载
eddygalmost 4 years ago
FWIW, this is the same list Facebook told[0] businesses “not” <i>(wink, wink)</i> to add their domain to after Apple announced all the tracking restrictions.<p>[0] <a href="https:&#x2F;&#x2F;www.facebook.com&#x2F;business&#x2F;help&#x2F;331612538028890" rel="nofollow">https:&#x2F;&#x2F;www.facebook.com&#x2F;business&#x2F;help&#x2F;331612538028890</a>
quotemstralmost 4 years ago
The public suffix list is an abomination --- a useful, pragmatic, largely successful abomination, but an abomination nevertheless. The PSL centralizes and makes static a database that should be dynamic and distributed. It&#x27;s a throwback to the bad old pre-DNS internet where everyone would copy around &#x2F;etc&#x2F;hosts files and rely on ad hoc human updating to keep host-&gt;address mapping up to date.<p>The information in the public suffix list belongs in DNS.
评论 #27852252 未加载
评论 #27852286 未加载
dangalmost 4 years ago
Some related past threads:<p><i>Public Suffix List Problems</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20889474" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20889474</a> - Sept 2019 (15 comments)<p><i>The Public Suffix List</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12311530" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12311530</a> - Aug 2016 (40 comments)<p><i>Public suffix list</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9634824" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9634824</a> - May 2015 (1 comment)<p><i>Public Suffix List</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=850115" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=850115</a> - Sept 2009 (3 comments)
评论 #27857936 未加载
patrickmcmanusalmost 4 years ago
The IETF WG DBOUND tried to find a better solution to this problem and did not reach any consensus. fwiw.<p><a href="https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;wg&#x2F;dbound&#x2F;about&#x2F;" rel="nofollow">https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;wg&#x2F;dbound&#x2F;about&#x2F;</a><p>The current way most of this is handled is via a list published at publicsuffix.org (commonly known as the &quot;Public Suffix List&quot; or &quot;PSL&quot;), and the general goal is to accommodate anything people are using that for today. However, there are broadly speaking two use patterns. The first is a &quot;top ancestor organization&quot; case. In this case, the goal is to find a single superordinate name in the DNS tree that can properly make assertions about the policies and procedures of subordinate names. The second is to determine, given two different names, whether they are governed by the same administrative authority. The goal of the DBOUND working group is to develop a unified solution, if possible, for determining organizational domain boundaries. However, the working group may discover that the use cases require different solutions. Should that happen, the working group will develop those different solutions, using as many common pieces as it can.
nr2xalmost 4 years ago
Hey, it works fine as long as you don’t think too much.
remramalmost 4 years ago
Couldn&#x27;t this be done in DNS? The same way zone delegations appear in there, a way to encode what&#x27;s a public suffix?<p>For example (I&#x27;m bad at DNS)<p>_suffix.gitlab.io TXT &quot;type=public,cookies=restrict,cross-origin=forbid&quot;<p>would tell everyone that remram44.gitlab.io is under the gitlab.io public suffix, and how to deal with cookies etc?
评论 #27860537 未加载
ashton314almost 4 years ago
Something I’ve always wondered: why is `co.uk` a TLD? What’s the story behind that?
评论 #27852805 未加载
评论 #27852970 未加载
sascha_slalmost 4 years ago
Getting a domain listed is pretty hard.<p>Getting vendors to update their PSL in less ubiquitous products is near impossible. For instance, 1Password hasn&#x27;t shipped a new version in years.
评论 #27855797 未加载
theelous3almost 4 years ago
Small plug for a random python tool I maintain that uses this.<p>Parsing domains is a pain in the ass. It can be impossible to know what is part of tld, what is a subdomain etc without a canonical list and parser.<p>Here&#x27;s a sansio domain &#x2F; tld splitter: <a href="https:&#x2F;&#x2F;github.com&#x2F;theelous3&#x2F;sansio-tld-parser" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;theelous3&#x2F;sansio-tld-parser</a><p>Usecase: you want to block all edu domains - but tlds like wa.edu.au exists - gotta parse it out.
评论 #27854504 未加载