Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1.79 KB

README.md

File metadata and controls

56 lines (43 loc) · 1.79 KB

Tor Nodes Resolver

Resolve or check if an IP Address is a tor exit/node


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")))