{"id":47745839,"url":"https://github.com/epinter/publicsuffixlist","last_synced_at":"2026-04-03T01:00:54.734Z","repository":{"id":320903863,"uuid":"1065618134","full_name":"epinter/publicsuffixlist","owner":"epinter","description":"A Java implementation of the Public Suffix List algorithm.","archived":false,"fork":false,"pushed_at":"2025-10-26T15:50:21.000Z","size":161,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-26T17:45:48.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://central.sonatype.com/artifact/dev.pinter.psl/publicsuffixlist","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epinter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-28T04:55:17.000Z","updated_at":"2025-10-26T16:27:54.000Z","dependencies_parsed_at":"2025-10-26T17:45:51.170Z","dependency_job_id":null,"html_url":"https://github.com/epinter/publicsuffixlist","commit_stats":null,"previous_names":["epinter/publicsuffixlist"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/epinter/publicsuffixlist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epinter%2Fpublicsuffixlist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epinter%2Fpublicsuffixlist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epinter%2Fpublicsuffixlist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epinter%2Fpublicsuffixlist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epinter","download_url":"https://codeload.github.com/epinter/publicsuffixlist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epinter%2Fpublicsuffixlist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31323579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T00:28:04.943Z","status":"ssl_error","status_checked_at":"2026-04-03T00:27:17.904Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-03T01:00:30.377Z","updated_at":"2026-04-03T01:00:54.728Z","avatar_url":"https://github.com/epinter.png","language":"Java","readme":"# Public Suffix List for Java\n\nA Java implementation of the Public Suffix List algorithm. More information about the list can be found at https://www.publicsuffix.org\n\n### Dependencies\n\nRequires Java 8 runtime.\n\n### Examples\n\n```\n// The Public Suffix List has two divisions, ICANN and PRIVATE suffixes\n// It is possible to search for domains and suffixes,\n// from ICANN, PRIVATE or ANY (for both divisions)\nPublicSuffixList psl = PublicSuffixList.fromDefaultList();\n\n// returns a domain that can be registered under a ICANN suffix,\n// local or invalid domains are not returned\nString icannDomain = psl.getRegisterableDomain(\"news.mail.example.com\");\nSystem.out.println(icannDomain); //should return 'example.com'\n\nString icannOrPrivate = psl.getDomainRoot(\"a.b.c.uk.com\");\n// should return 'c.uk.com', 'uk.com' is a private suffix\nSystem.out.println(icannOrPrivate);\n\nString icannOrPrivate2 = psl.getDomainRoot(\"a.b.c.uk.com\", SuffixType.ANY);\n// should return 'c.uk.com', 'uk.com' is a private suffix\nSystem.out.println(icannOrPrivate2);\n\nString suffix = psl.getSuffix(\"news.mail.local.example\");\n// should return 'example'\nSystem.out.println(suffix);\n\nString suffix2 = psl.getSuffix(\"news.mail.example.net\", SuffixType.ICANN);\n// should return 'net'\nSystem.out.println(suffix2);\n\nString suffixIcann = psl.getSuffix(\"a.b.c.uk.com\", SuffixType.PRIVATE);\n// should return 'uk.com', example.com would return null\nSystem.out.println(suffixIcann);\n\nString suffix3 = psl.getSuffix(\"platform.sh\", SuffixType.ANY);\n// should return 'sh'\nSystem.out.println(suffix3);\n\nString name = psl.getNameRoot(\"a.x.s.s.a.example\");\n//should return 'a.example', the domain is invalid, but is syntactically valid\nSystem.out.println(name);\n\nString name2 = psl.getNameRoot(\"a.x.s.s.a.uk.com\");\n//should return 'a.uk.com', it is from private list\nSystem.out.println(name2);\n\nboolean maySetCookie = psl.maySetCookies(\"example.org\");\n//should return a boolean indicating if domain can set cookies\nSystem.out.println(maySetCookie);\n```\n\n### License\n\nPublic Suffix List for Java is licensed under Apache License 2.0.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepinter%2Fpublicsuffixlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepinter%2Fpublicsuffixlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepinter%2Fpublicsuffixlist/lists"}