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: 12 months ago
JSON representation
Detect TOR Browser, server side
- Host: GitHub
- URL: https://github.com/the-best-codes/detecttor
- Owner: The-Best-Codes
- License: mit
- Created: 2024-10-03T00:18:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-29T18:04:34.000Z (over 1 year ago)
- Last Synced: 2025-03-29T18:34:40.179Z (over 1 year ago)
- Topics: address, browser, detection, detector, ip, security, tor
- Language: TypeScript
- Homepage:
- Size: 72.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# DetectTor

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