Public Suffix List

Also known as: PSL

On this page 7

The Public Suffix List (PSL) is a community-maintained catalog of domain suffixes under which Internet users can directly register names, such as com, co.uk or github.io. Software uses it to answer a question that the DNS itself cannot: where the boundary of a registrable domain lies, and therefore which domain names belong to the same owner.

The list was started by Mozilla in 2007 to stop websites from setting cookies for entire registries, and it is now used by every major browser, by certificate authorities and by email authentication systems. It is a plain text file of rules, curated by volunteers and updated through public change requests.

Why the DNS needs a Public Suffix List

The DNS hierarchy shows where zones are delegated, not who controls them. Looking at shop.example.co.uk, nothing in the protocol says that co.uk is a public registry level while example.co.uk is a private domain. A naive rule such as “take the last two labels” fails for many ccTLD structures, for some gTLD arrangements and for hosting platforms.

The PSL fills that gap with explicit data. Each entry declares a public suffix, also called an effective top-level domain (eTLD). The public suffix plus one further label forms the registrable domain, often written as eTLD+1, which software treats as the unit of ownership.

The following table shows how the list splits example names into their parts.

Host namePublic suffixRegistrable domain (eTLD+1)
blog.example.comcomexample.com
shop.example.co.ukco.ukexample.co.uk
alice.github.iogithub.ioalice.github.io
city.kawasaki.jpkawasaki.jp exception appliescity.kawasaki.jp
Splitting host names with the Public Suffix List

Rule types and the matching algorithm

Each non-comment line of the file is one rule, written without a leading dot and in Unicode for internationalized domain names. Three rule types exist, and their interaction determines the final result.

Rule typeSyntax exampleMeaning
Normal ruleco.ukThe listed name is a public suffix
Wildcard rule*.kawasaki.jpEvery label directly under the name is a public suffix
Exception rule!city.kawasaki.jpOverrides a wildcard; the name is registrable, not public
Rule types in the Public Suffix List

The matching algorithm is short but strict. Software finds all rules that match the host name, prefers an exception rule if one matches, and otherwise selects the rule with the most labels. If nothing matches, an implicit default rule `*` applies, which treats the last label as the public suffix.

  1. Normalize the host name to lowercase and convert labels consistently between Punycode and Unicode.
  2. Collect every matching normal, wildcard and exception rule.
  3. If an exception rule matches, remove its leftmost label to obtain the public suffix.
  4. Otherwise take the longest matching rule as the public suffix.
  5. Add one label to the left to obtain the registrable domain.

ICANN and private sections of the list

The file is divided into two clearly marked sections. The ICANN section contains suffixes delegated through the root zone and the registry policies of TLD operators. The PRIVATE section contains suffixes operated by companies that let customers create independent subdomains, such as hosting, blogging and dynamic DNS services.

AspectICANN sectionPRIVATE section
Source of entriesTLD registries and their published policiesRequests from platform operators
Typical examplescom, de, co.uk, ac.jpgithub.io, blogspot.com, cloudfront.net
Who requests changesRegistry operators or maintainersThe organization that owns the domain
Use when only registry data mattersIncludedOften excluded, for example in some DMARC tools
Comparison of the two sections

Inclusion in the PRIVATE section is a deliberate security decision for a platform. Once its domain is listed, browsers isolate each customer subdomain, which prevents one customer from setting cookies that affect another.

Where software relies on the PSL

The list underpins several security and usability boundaries on the web. The table summarizes the most important consumers and what goes wrong without it.

ConsumerHow the PSL is usedRisk without it
Browser cookiesRejects cookies scoped to a public suffixSupercookies readable by unrelated sites
SameSite and site isolationDefines what counts as the same siteWeaker cross-site protections
Address bar displayHighlights the registrable domainEasier lookalike phishing
Certificate authoritiesLimit wildcard issuance and rate limits per domainOverly broad certificates
DMARCFinds the organizational domainIncorrect policy lookup and alignment
Main consumers of the Public Suffix List

Let’s Encrypt, for example, applies its rate limits per registered domain as computed from the PSL, which is why large hosting platforms often request inclusion in the PRIVATE section.

Maintenance, versioning and common pitfalls

The PSL changes several times a month, as new gTLDs are delegated, registries change their structures and platforms request entries. Software that embeds a copy at build time gradually becomes outdated, so libraries and browsers schedule regular updates.

  • Stale copies cause new suffixes to be treated as ordinary domains, weakening cookie isolation.
  • Assuming two labels in place of PSL lookups breaks on co.uk, com.au and similar structures.
  • Removal is slow: once deployed in browsers, an entry may persist for months in older versions, so operators should request inclusion carefully.
  • The list is not an ownership registry; it says nothing about who holds a domain, which remains the role of WHOIS and RDAP.
  • IDN mismatches arise when software compares Punycode host names against Unicode rules without converting them first.

In plain words

Web addresses have shared parts and owned parts. In an address ending in co.uk, the co.uk part is shared by thousands of companies, while the name just before it belongs to one company. Computers cannot always tell these apart by looking at the dots.

The Public Suffix List is a reference list of the shared parts. It works like a list of apartment building addresses that tells a mail carrier which part of an address is the building and which part is a single flat. Browsers use it to keep each owner’s data separate from everybody else’s.

A real-world example

A company runs a website builder that gives each customer an address such as bakery.sitebuilder-example.net. During a security review, engineers notice that a script on one customer site can set a cookie for the whole parent domain, which every other customer site would then receive. This opens the door to session fixation and tracking across customer sites.

The company submits a request to add its domain to the PRIVATE section of the Public Suffix List, proving control with a DNS TXT record. After the entry is accepted and browsers ship updated copies over the next releases, each customer subdomain is treated as a separate registrable domain. Cross-customer cookies are rejected, and certificate rate limits are now counted per customer rather than for the entire platform, which also removes an operational bottleneck in automated certificate issuance.