6. PSLのフォーマット
http://publicsuffix.org/list/ にある例
注:1行に1ルール、本来のリストに行番号は無い
1. com
2. *.jp
// Hosts in .hokkaido.jp can't set cookies below level 4...
3. *.hokkaido.jp
4. *.tokyo.jp
// ...except hosts in pref.hokkaido.jp, which can set cookies at level 3.
5. !pref.hokkaido.jp
6. !metro.tokyo.jp
このルールを解釈 (注:foo, barはホスト名):
1. Cookies may be set for foo.com.
2. Cookies may be set for foo.bar.jp.
Cookies may not be set for bar.jp.
3. Cookies may be set for foo.bar.hokkaido.jp.
Cookies may not be set for bar.hokkaido.jp.
4. Cookies may be set for foo.bar.tokyo.jp.
Cookies may not be set for bar.tokyo.jp.
5. Cookies may be set for pref.hokkaido.jp because the exception overrides the previous rule.
6. Cookies may be set for metro.tokyo.jp, because the exception overrides the previous rule.
6
7. PSL(の一部)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// ===BEGIN ICANN DOMAINS===
// ac : http://en.wikipedia.org/wiki/.ac
ac
com.ac
edu.ac
gov.ac
net.ac
mil.ac
org.ac
// ad : http://en.wikipedia.org/wiki/.ad
ad
nom.ad
// ae : http://en.wikipedia.org/wiki/.ae
// see also: "Domain Name Eligibility Policy" at http://www.aeda.ae/eng/aepolicy.php
ae
co.ae
net.ae
org.ae
sch.ae
ac.ae
gov.ae
mil.ae
// jp : http://en.wikipedia.org/wiki/.jp
// http://jprs.co.jp/en/jpdomain.html
// Submitted by registry <info@jprs.jp> 2014-02-28
jp
// jp organizational type names
ac.jp
ad.jp
co.jp
ed.jp
go.jp
gr.jp
lg.jp
ne.jp
or.jp
// jp preficture type names
aichi.jp
akita.jp
aomori.jp
chiba.jp
ehime.jp
fukui.jp
fukuoka.jp
fukushima.jp
gifu.jp
gunma.jp
hiroshima.jp
hokkaido.jp
hyogo.jp
ibaraki.jp
ishikawa.jp
78181行中1756行が.JPドメイン名(2014/04/15現在)