Skip to main content
BlockList.prototype.addRange - node__net.d.ts - Node documentation
method BlockList.prototype.addRange

Usage in Deno

```typescript import { BlockList } from "node:node__net.d.ts"; ```
BlockList.prototype.addRange(
start: string,
end: string,
type?: IPVersion,
): void
Adds a rule to block a range of IP addresses from `start` (inclusive) to`end` (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