libpsl
« Back to VersTracker
Description:
C library for the Public Suffix List
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Networking
Tags: library networking security internet c-library
Install: brew install libpsl
About:
Libpsl is a C library that provides functionality to work with the Public Suffix List. It allows programs to accurately determine the effective top-level domain (eTLD) for a given domain name, which is crucial for handling cookies and security policies correctly. This helps prevent cross-site scripting attacks by ensuring cookies are scoped to the proper domain.
Key Features:
  • Fast and efficient domain parsing using a compiled DAWG structure
  • Supports both ICU and built-in backends for internationalized domain names
  • Handles the complex rules of the Public Suffix List accurately
  • Lightweight C library with minimal dependencies
Use Cases:
  • Implementing secure cookie scoping in web browsers and servers
  • Validating and parsing domain names for network applications
  • Preventing domain-based security vulnerabilities
Alternatives:
  • golang.org/x/net/publicsuffix – Go language implementation; libpsl is a universal C library suitable for any language binding.
Version History
Detected Version Rev Change Commit
Sep 14, 2025 6:20am 2 VERSION_BUMP c2363e05
Oct 6, 2024 1:13am 2 VERSION_BUMP c14bb868
Oct 5, 2024 6:06pm 2 VERSION_BUMP 6a46a6c7