Skip to content

Resolve or check if an IP Address is a TOR exit/node. Compatible with Python, Java and Javascript.

Notifications You must be signed in to change notification settings

sammwyy/tor-nodes-resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Resolve or check if an IP Address is a TOR exit/node. Compatible with Python, Java and Javascript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published