express-acsecure
v0.1.4
Published
Express middleware for Access Secure
Downloads
7
Readme
express-acsecure
Access Secure middleware for Express (node), for logging, anti-spamming and black/white list...
Install
Go to https://logsecure.io, create an account and project. Remember project ID and keep project token in secret. (See images below for details)
npm i express-acsecure
Usage
app.use(bodyParser.json()); // Optional, to record request body const acsecure = require('express-acsecure'); const appId = 'myAppId'; const appToken = 'myAppToken'; const forbiddenCallback = res => res.status(403).end(); // callback for forbidden requests app.use(acsecure(appId, appToken, forbiddenCallback));