Skip to content

Reliably identify a relevant sitename when configuring new sites #69

@jmorgannz

Description

@jmorgannz

This is a separate feature opened after discussion of the subject in the #68 PR.

Example domain name:

  • subdomaina.subdomainb.website.com.tw

Discussion to date has yielded the following:

  1. Identify the public suffix of a domain (com.tw)
  2. Identify the sitename as the first domain segment left of the public suffix, including the public suffix (sitename.com.tw)
  3. Ignore 0-n subdomains left of the sitename (subdomaina.subdomainb.website.com.tw)
  4. In the case where it is desired to identify the sitename as a subdomain, manual override should be accepted

Methods discussed:

  1. Use a limited pre-defined list of public suffixes augmented by user configurable over-rides. (Treat as same site #68)
  2. Source and load a comprehensive list of fixed public suffixes requiring no user configuration or override.

Solution 2 has been leaned toward as a favourite by importing a copy of the Public Suffix List and a system to read / use it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions