1.0.1 • Published 2 years ago
troller.js v1.0.1
Troller.js
Troll the threat actor with memes and mocks while protecting your webserver from multiple attack vectors. using behavior ware and data filtering to block malicious content.
🧰 Installation
This is a Node.js module available through the npm registry. Before installing, download and install Node.js. Node.js 10.x or higher is required. If this is a brand new project, make sure to create a package.json first with the npm init
command. Installation is done using the npm install
command:
npm i troller.js
⚙️ Setup
This is a minimal setup using expressjs, however any web-server libary that supports middleware is compatable. By default security and mocking is enabled, for more information on options check the wiki.
const troller = require('troller.js');
const express = require('express');
const app = express();
app.use(
troller(
{"paths": ['/block']}
)
);
app.get('/', function (req, res) {
res.send('Hello World');
});
app.listen(3000)