Blob Blame History Raw
.TH PSL "1" "July 2016" "psl 0.13.0" "User Commands"
psl \- Explore the Public Suffix List
.B psl
[\fI\,options\/\fR] \fI\,<domains\/\fR...\fI\,>\/\fR
`psl' explores the Public Suffix List.  It takes a list of domains on
the command line, or if no domains are present on the command line, it
reads one domain per line from standard input.  It prints its results
to standard output, with each line containing one domain followed by a
colon, followed by the relevant information for that domain.
The information printed per domain changes based on the selected mode.
Available modes are:
check if domains are public suffixes. [default]
Returned data: 1 if the \fIdomain\fR is a public suffix, 0 otherwise.
This option can be combined with \fB\-\-no\-star\-rule\fR.  It's use will
switch off the PSL 'prevailing star rule' so that all TLDs not
explicitly listed in the PSL will return 0 (not a public suffix).
\fB\-\-is\-cookie\-domain\-acceptable\fR <cookie\-domain>
check if cookie\-domain is acceptable for domains.
Returned data: 1 if \fIcookie-domain\fR is acceptable for the
\fIdomain\fR, 0 otherwise.
Returned data: the longest public suffix part for each \fIdomain\fR.
Returned data: the shortest private suffix part for each \fIdomain\fR.
`psl' can instead be used to report information about the version of
the library and its built-in Public Suffix data:
show library version information
print info about library builtin data
By default, `psl' will use the latest available Public Suffix data.
You can also direct it to use a different file:
use the latest available PSL data [default]
use the builtin PSL data
\fB\-\-load\-psl\-file\fR <filename>
load PSL data from file
libpsl and `psl' are copyright \(co 2014\-2016 Tim Ruehsen under an
MIT-style License.
This documentation was written by Daniel Kahn Gillmor for the Debian
project, but may be used by others under the same license as libpsl