Supported URL Patterns
Below are the supported URL patterns (not 100% battle tested):
- Steven Black hosts.
0.0.0.0<whitespace character><url>
- Exact URLs
http[s]://<subdomain><url>.<tld>
- Wildcard URLs, including known paths.
<url>/*
<url>/<known path>/*
- URLs without protocol.
<subdomain>.<url>.<tld>
- URLs without subdomain.
http[s]://<url>.<tld>
- Partial keyword URLs.
<url>/[<keyword>, <...>]
Examples
Steven Black Hosts
plaintext
0.0.0.0 facebook.com
Exact URLs
plaintext
https://react.dev/reference/react
Wildcard URLs
For example, this would block any URL under youtube.com.
plaintext
youtube.com/*
In the editor, the /*
part of the URL should be highlighted:
URLs Without Protocol
plaintext
www.linkedin.com
URLs without subdomain
plaintext
https://github.com
Partial Keyword URLs
- For example, this will block any URL under google.com that contains "linkedin"
plaintext
google.com/[linkedin]
In the editor, the /[<keyword>]
part of the URL will be highlighted.
- This example will block any path under google.com that contains either "linkedin" or "stackoverflow" but not both.
plaintext
google.com/[linkedin, stackoverflow]
In the editor, the /[<keyword>, <keyword>]
part of the URL will be highlighted. Each keyword will be highlighted.
Missing a Pattern?
If there is a pattern that is not supported but you want it, please post a new issue for it to be considered in a future update. Be descriptive and provide thorough examples.