Skip to main content
Deno 2 is finally here 🎉️
Learn more

brick_wall_static_ip_ban

brick_wall_ip_ban is an extension module of Brick Wall.

Communication is blocked according to the IP described in the source code.

Setup

import { BrickWall } from 'https://deno.land/x/brick_wall/mod.ts';
import { createHandler } from "https://deno.land/x/brick_wall_static_ip_ban/mod.ts";

const brickWall = new BrickWall({ port: 8001 });
brickWall.useHandler(createHandler(["127.0.0.1"]));

await brickWall.start();

Reference

https://deno.land/x/brick_wall_static_ip_ban