Skip to main content

addRange

method BlockList.prototype.addRange
Jump to headingBlockList.prototype.addRange(
start: string,
end: string,
type?: IPVersion,
): void

Adds a rule to block a range of IP addresses from start (inclusive) toend (inclusive).

Parameters Jump to heading

Jump to headingstart: string

The starting IPv4 or IPv6 address in the range.

Jump to headingend: string

The ending IPv4 or IPv6 address in the range.

optional
Jump to headingtype: IPVersion = 'ipv4'

Either 'ipv4' or 'ipv6'.

Return Type Jump to heading

void
Jump to headingBlockList.prototype.addRange(): void
Back to top