BlockList
Value members
Inherited methods
Adds a rule to block the given IP address.
Adds a rule to block the given IP address.
- Value Params
- address
An IPv4 or IPv6 address.
- type
Either 'ipv4' or 'ipv6'. Default: 'ipv4'.
- Inherited from
- BlockList
Adds a rule to block a range of IP addresses from start (inclusive) to end (inclusive).
Adds a rule to block a range of IP addresses from start (inclusive) to end (inclusive).
- Value Params
- end
The ending IPv4 or IPv6 address in the range.
- start
The starting IPv4 or IPv6 address in the range.
- type
Either 'ipv4' or 'ipv6'. Default: 'ipv4'.
- Inherited from
- BlockList
Adds a rule to block a range of IP addresses specified as a subnet mask.
Adds a rule to block a range of IP addresses specified as a subnet mask.
- Value Params
- net
The network IPv4 or IPv6 address.
- prefix
The number of CIDR prefix bits. For IPv4, this must be a value between 0 and 32. For IPv6, this must be between 0 and 128.
- type
Either 'ipv4' or 'ipv6'. Default: 'ipv4'.
- Inherited from
- BlockList
Returns true if the given IP address matches any of the rules added to the BlockList.
Returns true if the given IP address matches any of the rules added to the BlockList.
- Value Params
- address
The IP address to check
- type
Either 'ipv4' or 'ipv6'. Default: 'ipv4'.
- Inherited from
- BlockList