https://github.com/assafmo/istorexit
Check if an IP is a Tor exit node
https://github.com/assafmo/istorexit
command-line exit-relay npm-package tor tor-relay
Last synced: about 1 year ago
JSON representation
Check if an IP is a Tor exit node
- Host: GitHub
- URL: https://github.com/assafmo/istorexit
- Owner: assafmo
- License: mit
- Created: 2018-03-26T18:03:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T07:40:09.000Z (about 4 years ago)
- Last Synced: 2025-03-22T07:51:22.230Z (about 1 year ago)
- Topics: command-line, exit-relay, npm-package, tor, tor-relay
- Language: JavaScript
- Homepage:
- Size: 628 KB
- Stars: 45
- Watchers: 3
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IsTorExit
Check if an IP is a Tor exit node.
[](https://badge.fury.io/js/istorexit) [](https://circleci.com/gh/assafmo/IsTorExit)
# Usage
## CLI
```console
$ npm install -g istorexit
$ istorexit --help
NAME
istorexit - Check if an IP is a Tor exit node
SYNOPSIS
istorexit [options] [IP...]
OPTIONS
-h, --help
Print this message and exit
$ istorexit 1.1.1.1 1.2.1.1 1.3.1.1 1.4.1.1 1.5.1.1 104.200.20.46
1.1.1.1 false
1.2.1.1 false
1.3.1.1 false
1.4.1.1 false
1.5.1.1 false
104.200.20.46 true
```
## NodeJs
```js
const IsTorExit = require("istorexit");
IsTorExit("104.200.20.46").then(console.log); // true
IsTorExit("1.1.1.1").then(console.log); // false
```