Socket
Book a DemoInstallSign in
Socket

tor-ejector

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tor-ejector

express middleware

0.0.7
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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!');
});

Keywords

tor

FAQs

Package last updated on 30 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.