Skip to content

Commit

Permalink
README: Document how to add a custom domain to the list (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreynering authored May 12, 2023
1 parent cdb1cd2 commit 37dac97
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ PublicSuffix.domain("something.blogspot.com")
# => "blogspot.com"
```

## Add domain to list

If you want to manually add a domain to the list just run:

```ruby
PublicSuffix::List.default << PublicSuffix::Rule.factory('onmicrosoft.com')
```

## What is the Public Suffix List?

Expand Down Expand Up @@ -214,4 +221,4 @@ sld = Second level domain, a domain that is directly below a top-level domain. F

trd = Transit routing domain, or known as a subdomain. This is the part of the domain that is before the sld or root domain. For example, in `https://www.mozilla.org/en-US/`, `www` is the trd.

FQDN = Fully Qualified Domain Names, are domain names that are written with the hostname and the domain name, and include the top-level domain, the format looks like `[hostname].[domain].[tld].` for ex. `[www].[mozilla].[org]`.
FQDN = Fully Qualified Domain Names, are domain names that are written with the hostname and the domain name, and include the top-level domain, the format looks like `[hostname].[domain].[tld].` for ex. `[www].[mozilla].[org]`.

0 comments on commit 37dac97

Please sign in to comment.