Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/the-best-codes/detecttor

Detect TOR Browser, server side
https://github.com/the-best-codes/detecttor

address browser detection detector ip security tor

Last synced: 4 days ago
JSON representation

Detect TOR Browser, server side

Awesome Lists containing this project

README

        

# DetectTor

DetectTor Logo

DetectTor is a simple npm library to detect if a request originated from Tor Browser.
DetectTor uses Tor's exit node list to determine if the request is a Tor exit node.

## Usage

Install the package:

```bash
npm install @bestcodes/detecttor
```

Import and use a function:

```typescript
import isIpTor, { amIUsingTor } from "@bestcodes/detecttor";

isIpTor("89.0.142.86")
.then((result) => {
console.log(result);
})
.catch((error) => {
console.error(error);
});

amIUsingTor()
.then((result) => {
console.log(result);
})
.catch((error) => {
console.error(error);
});
```

## License

MIT License