Setup and Installation of Zen Firewall for Node.js (JavaScript & TypeScript)
1
Install Zen Firewall by Aikido
# The --save-exact makes sure that you don't automatically install a newer version
$ npm install --save-exact @aikidosec/firewall
# The --exact makes sure that you don't automatically install a newer version
$ yarn add --exact @aikidosec/firewallrequire('@aikidosec/firewall'); // <-- Include this before any other code or imports
const express = require('express');
const app = express();
// Your other middleware and routes
app.listen(3000, () => {
console.log("Server is running on port 3000");
});import '@aikidosec/firewall';
import express from 'express';
const app = express();
// Your other middleware and routes
app.listen(3000, () => {
console.log("Server is running on port 3000");
});2
5
Setup rate limiting in the dashboard



You are rate limited by Aikido firewall. (Your IP: 1.2.3.4)Last updated
Was this helpful?

