Skip to main content
BlockList.prototype.addRange - net - Node documentation
method BlockList.prototype.addRange

Usage in Deno

import { BlockList } from "node:net";
BlockList.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

start: string

The starting IPv4 or IPv6 address in the range.

end: string

The ending IPv4 or IPv6 address in the range.

optional
type: IPVersion = 'ipv4'

Either 'ipv4' or 'ipv6'.

Return Type

void
BlockList.prototype.addRange(): void

Parameters

Return Type

void
Back to top