ドメイン名パターン

ホストパターン

[5] ドメイン名ホストパターンを記述するために、 * が使われることがよくあります。

関連

[4] 他の表現方法については、ドメイン名の比較を参照。

メモ

[1] Network Communications - Google Chrome ( ()) https://developer.chrome.com/apps/app_network

The syntax of socket "host-pattern" entries follows these rules:

  • <host-pattern> := <host> | ':' <port> | <host> ':' <port>
  • <host> := '*' | '*.' <anychar except '/' and '*'>+
  • <port> := '*' | <port number between 1 and 65535>)

[2] chrome.webNavigation - Google Chrome ( ()) https://developer.chrome.com/extensions/webNavigation

Matches if the host name of the URL contains a specified string. To test whether a host name component has a prefix 'foo', use hostContains: '.foo'. This matches 'www.foobar.com' and 'foo.com', because an implicit dot is added at the beginning of the host name. Similarly, hostContains can be used to match against component suffix ('foo.') and to exactly match against components ('.foo.'). Suffix- and exact-matching for the last components need to be done separately using hostSuffix, because no implicit dot is added at the end of the host name.

[3] PSL では、 *. で始まるドメイン名が「その他の任意のサブドメイン」 を表しています。

[6] Creating Safari Content-Blocking Rules () https://developer.apple.com/library/content/documentation/Extensions/Conceptual/ContentBlockingRules/CreatingRules/CreatingRules.html#//apple_ref/doc/uid/TP40016265-CH2-SW1

Domain values must be lowercase ASCII. Use punycode to encode non-ASCII characters.

Add the * character before the domain name to match the domain and any subdomains. For instance, *webkit.org matches bugs.webkit.org and webkit.org.

[7] server_name (nginx)

[8] No Proxy For configuration | MDN () https://developer.mozilla.org/en-US/docs/No_Proxy_For_configuration

[9] pwa-url-handler/explainer.md at main · WICG/pwa-url-handler () https://github.com/WICG/pwa-url-handler/blob/main/explainer.md#wildcard-matching