RequestPolicy rules combine 3 items:
Note: When both an allow and a block rule match a request, the user's default rule is used. (A priority system between rules is considered in issue 491)
The origin and destination components of a rule can have the following properties. All properties are optional. An empty rule property will not be considered when matching against requests.
example.com
(domain name), 192.30.252.128
(IPv4 address), or fe80:0000:0000:0000:0202:b3ff:fe1e:8329
(IPv6 address).*
to indicate any or no subdomain. For example, *.example.com
will match example.com
, www.example.com
, or a.b.c.example.com
. Wildcards are only supported as the leftmost label of a hostname. Wildcards are not supported anywhere else in the name and cannot be mixed with other characters.81
or 8080
. This may also be *
to indicate that any ports should match. By default, rules that do not specify ports only match the default port for the request's scheme (eg. 80
for http
).