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 name | Public suffix | Registrable domain (eTLD+1) |
|---|---|---|
| blog.example.com | com | example.com |
| shop.example.co.uk | co.uk | example.co.uk |
| alice.github.io | github.io | alice.github.io |
| city.kawasaki.jp | kawasaki.jp exception applies | city.kawasaki.jp |
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 type | Syntax example | Meaning |
|---|---|---|
| Normal rule | co.uk | The listed name is a public suffix |
| Wildcard rule | *.kawasaki.jp | Every label directly under the name is a public suffix |
| Exception rule | !city.kawasaki.jp | Overrides a wildcard; the name is registrable, not public |
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.
- Normalize the host name to lowercase and convert labels consistently between Punycode and Unicode.
- Collect every matching normal, wildcard and exception rule.
- If an exception rule matches, remove its leftmost label to obtain the public suffix.
- Otherwise take the longest matching rule as the public suffix.
- 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.
| Aspect | ICANN section | PRIVATE section |
|---|---|---|
| Source of entries | TLD registries and their published policies | Requests from platform operators |
| Typical examples | com, de, co.uk, ac.jp | github.io, blogspot.com, cloudfront.net |
| Who requests changes | Registry operators or maintainers | The organization that owns the domain |
| Use when only registry data matters | Included | Often excluded, for example in some DMARC tools |
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.
| Consumer | How the PSL is used | Risk without it |
|---|---|---|
| Browser cookies | Rejects cookies scoped to a public suffix | Supercookies readable by unrelated sites |
| SameSite and site isolation | Defines what counts as the same site | Weaker cross-site protections |
| Address bar display | Highlights the registrable domain | Easier lookalike phishing |
| Certificate authorities | Limit wildcard issuance and rate limits per domain | Overly broad certificates |
| DMARC | Finds the organizational domain | Incorrect policy lookup and alignment |
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.auand 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.