# detect-tor

> Detects if connection is a TOR exit node.

Latest version **1.0.2** (published 2018-03-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install detect-tor
pnpm add detect-tor
yarn add detect-tor
bun add detect-tor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-03-30 |
| First published | 2018-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Pawel Maciulewski |
| Maintainers | maciul |
| Keywords | tor, exit, node, detect, proxy |

## Links

- npm: https://www.npmjs.com/package/detect-tor
- npm.io page: https://npm.io/package/detect-tor

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.85.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-03-30
- 1.0.1 — 2018-03-30
- 1.0.0 — 2018-03-30

## README

# Detect-Tor

Easy to use library to identify TOR network connection. 

### Usage Example: 

```js
const detectTor = require( 'detect-tor' ) 

function testTor() {
    console.log( detectTor.isTor( '127.0.0.1' ) ) // true or false    
}

require( 'http' )
    .createServer( testTor )
    .listen( 8000 )
    .once( 'listening', ()=> console.log( 'Tor detection server enabled on ' + 8000 ) );
```

curl localhost:8000 

### About

List of exit addresses is automatically updated every 24hrs. 
The list of TOR exit nodes used can be found here: https://check.torproject.org/exit-addresses
### Tests:

npm test

---
_Source: https://npm.io/package/detect-tor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
