tor-nodes-resolver
v1.0.0
Published
<img src="https://github.com/sammwyy/tor-nodes-resolver/blob/master/assets/icon.png" width="128px" align="left"><h3>Tor Nodes Resolver</h3> <p>Resolve or check if an IP Address is a tor exit/node</p> <p> <img src="https://raw.githubusercontent.com/
Downloads
3
Readme
Tor Nodes Resolver
What is it?
This project aims to detect TOR nodes to discover if the request comes from here.
How does this work?
The project internally downloads a list of known nodes from this file, it can also make an HTTP request to query using an API.
Index
How to use
Java
import dev._2lstudios.tor_nodes_resolver.TorNodesResolver;
public class Test {
public static void main (String[] args) {
TorNodesResolver tnr = new TorNodesResolver();
System.out.println(tnr.isNode("45.154.35.252"));
System.out.println(tnr.isNode("11.22.33.44"));
}
}
Javascript
const TorNodesResolver = require("./");
const tnr = TorNodesResolver();
setTimeout(() => {
console.log(tnr.isNode("45.154.35.252"));
console.log(tnr.isNode("11.22.33.44"));
}, 500);
Python
import TorNodesResolver
print(str(TorNodesResolver.isNode("45.154.35.252")))
print(str(TorNodesResolver.isNode("11.22.33")))