bss-express
v1.2.0
Published
Using Anti-Bot and Anti-Attack detection methods to help secure your Express web app. ### Do note: This will not protect all of the attacks on your website if any niether will it be held accountable for any damages done.
Downloads
6
Readme
BSS-Express
How to use the middleware:
/* Start -- Basic stuff */
const express = require("express");
const app = express();
/* End -- Basic stuff */
const { mw } = require("bss-express");
app.use(mw({
useIPAPI : true, // request.security.request.ip_data <-- https://ip-api.com/
failedCallback : function(request, response, next) {
console.log("[BSS-Express] Failed, Start request info.");
console.log(request);
console.log("[BSS-Express] Failed, End request info.");
next();
}
}));