Site Sparks URL Pattern

Site Sparks URL Pattern

A URL pattern helps determine the sites on which a Spark should run.
Quote
The general structure is: <scheme>://<host>/<path>


Component
Description
Notes / Examples
Scheme
The protocol of the URL
Must be one of: http, https, or a wildcard * (matches only http or https)
Host
Hostname of the URL
Examples: www.example.com, *.abc.com,

Rules: Wildcard * must be first or only character, followed by . or /
Path
Path after the host
abc: /abcWildcard /* is used by convention. For host permissions, the path is required but ignored.

Special Cases

Pattern
Description
<all_urls>
Matches any URL with a permitted scheme (http, https, file). Use with caution.

Example Patterns

Pattern
Matches
https://*/*
Any URL using HTTPS
https://*/foo*
Any HTTPS URL with path starting foo (e.g., https://example.com/foo/bar.html)
https://*.example.com/foo*bar
HTTPS URLs on google.com host, path starts with foo and ends with bar (e.g., https://www.example.com/foo/baz/bar)
*://mail.example.com/ or *://mail.example.com/*
Matches HTTP or HTTPS URLs on mail.google.com