Resolve or check if an IP Address is a tor exit/node
This project aims to detect TOR nodes to discover if the request comes from here.
The project internally downloads a list of known nodes from this file, it can also make an HTTP request to query using an API.
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"));
}
}
const TorNodesResolver = require("./");
const tnr = TorNodesResolver();
setTimeout(() => {
console.log(tnr.isNode("45.154.35.252"));
console.log(tnr.isNode("11.22.33.44"));
}, 500);
import TorNodesResolver
print(str(TorNodesResolver.isNode("45.154.35.252")))
print(str(TorNodesResolver.isNode("11.22.33")))