te

tor-ejector

express middleware

Showing:

Popularity

Downloads/wk

422

GitHub Stars

2

Maintenance

Last Commit

5yrs ago

Contributors

2

Package

Dependencies

1

Size (min+gzip)

190.7KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

tor-ejector

Tor-ejector is an express middleware that reject request from tor.

Demo

Test url tor-ejector.herokuapp.com

# create tor proxy with docker
docker run -d -p 5566:5566 --env tors=25 mattes/rotating-proxy

# test with ...
curl https://tor-ejector.herokuapp.com
curl --proxy 127.0.0.1:5566 https://tor-ejector.herokuapp.com

Installation

npm install tor-ejector

Usage

var express = require('express');
var app = express();
var torEjector = require('tor-ejector');

app.use(torEjector());

Options

NameDefaultDescription
timeInterval1800000 (30min)time interval between each update of TOR addresses
message'Unauthorized'reply message at a request

Example

var express = require('express');
var app = express();
var torEjector = require('tor-ejector');

app.use(torEjector({
  timeInterval : 30*60*1000,
  message : 'Sorry no TOR here'
}));

app.get('*', function (req, res) {
    res.send('Hello World!');
});

app.listen(3000, "0.0.0.0", function () {
    console.log('Example app listening on port 3000!');
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100