Node.js (Google Cloud Functions)
Requirements
Installation & Configuration
1
Install Zen Firewall by Aikido
npm install --save-exact @aikidosec/firewallyarn add --exact @aikidosec/firewallpnpm add --save-exact @aikidosec/firewallrequire("@aikidosec/firewall/cloud-function");
const functions = require("@google-cloud/functions-framework");
functions.http("handler", async (req, res) => {
// your logic
});const protect = require("@aikidosec/firewall/cloud-function");
exports.handler = protect(async (event, context) => {
// your logic
});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?
