UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.

7 lines (6 loc) 213 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isLocalhostIP = isLocalhostIP; function isLocalhostIP(ip) { return ["127.0.0.1", "::ffff:127.0.0.1", "::1"].includes(ip); }