GithubHelp home page GithubHelp logo

neuralnoise / tor-detect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from k4m4/tor-detect

0.0 2.0 0.0 54 KB

Detect whether an IP address belongs to a Tor exit node.

License: MIT License

JavaScript 100.00%

tor-detect's Introduction

tor-detect Build Status

Detect whether an IP address belongs to a Tor exit node.

Install

~ ❯❯❯ npm install --save tor-detect

Usage

const torDetect = require('tor-detect');

torDetect('176.31.45.3').then(tor => {
	console.log(tor);
	//=> true
});

torDetect('8.8.8.8').then(tor => {
	console.log(tor);
	//=> false
});

API

torDetect(targets, [options])

Returns a Promise for a boolean which is true if any of the targets belongs to Tor.

targets

Type: string Array

options

timeout

Type: number

Timeout in milliseconds after which a request is considered failed. Default: 5000.

Credits

  • check.torproject.org - A list of all Tor exit nodes from the past 16 hours that can contact 1.1.1.1 on port 80
  • dan.me.uk - A page containing a full TOR nodelist.

Related

  • tor-detect.now - A minimal service to check whether a visitor is running behing Tor.

License

MIT © Nikolaos Kamarinakis

tor-detect's People

Contributors

k4m4 avatar

Watchers

James Cloos avatar Starbuck avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.