Parse a domain down to root

Edit Package perl-Domain-PublicSuffix
https://metacpan.org/pod/Domain::PublicSuffix

This module utilizes the "effective_tld_names.dat" provided by Mozilla as a way to effectively reduce a fully qualified domain name down to the absolute root. The Mozilla PublicSuffix file is an open source, fully documented format that shows absolute root TLDs, primarily for Mozilla's browser products to be able to determine how far a cookie's security boundaries go.

This module will attempt to search etc directories in /usr/share/publicsuffix, /usr, /usr/local, and /opt/local for the effective_tld_names.dat file. If a file is not found, a default file is loaded from Domain::PublicSuffix::Default, which is current at the time of the module's release. You can override the data file path by giving the new() method a 'data_file' argument.

When creating a new PublicSuffix object, the module will load the data file as specified, and use the internal structure to parse each domain sent to the get_root_domain method. To re-parse the file, you must destroy and create a new object, or execute the _parse_data_file method directly, though that is not recommended.

Refresh
Refresh
Source Files
Filename Size Changed
Domain-PublicSuffix-0.16.tar.gz 0000109097 107 KB
cpanspec.yml 0000000669 669 Bytes
perl-Domain-PublicSuffix.changes 0000001252 1.22 KB
perl-Domain-PublicSuffix.spec 0000003070 3 KB
Revision 2 (latest revision is 8)
Lars Vogdt's avatar Lars Vogdt (lrupp) accepted request 743805 from Tina Müller's avatar Tina Müller (tinita) (revision 2)
- updated to 0.16
   see /usr/share/doc/packages/perl-Domain-PublicSuffix/Changes
  0.16    2019-10-18 20:00 GMT
    - Refresh PublicSuffix list
    - Add publicsuffix.org unit tests
    - Force lower case on ASCII domains
    - Rewrite suffix parser to both more closely match publicsuffix intentions,
      as well as reduce needless complexity, also solving a comment on issue
      #3
  
  0.15    2019-04-23 20:00 GMT
    - Refresh PublicSuffix list
    - Merged pull request from Gavin Carr to explicitly open a file with UTF-8
      encoding
    - Bump Net::IDN::Encode requirement to 2.401 to avoid unicode issues
    - (#3) Provide a tld and suffix even with asking get_root_domain for a valid
      suffix that is not a valid domain. Will still report 'Domain not valid',
      but ->suffix and ->tld will resolve.
    - Make sure that the error condition from get_root_domain still throws when
      a root domain is already fired, but that it still returns.
Comments 0
openSUSE Build Service is sponsored by