I have someone attacking my site and it would seem some of the IPs are Tor exit nodes.

Is there somewhere I can input an IP and definitively see if it's registered as a Tor exit node?

5 Answers 5


The Tor Project has a tool to do this at:


For automated lookups, they also provide a DNSBL-based lookup; information on that is available at:


  • How can I setup an API like what exonerator has? the TorDNSEL docs aren't super clear to me
    – Anthony
    Sep 19, 2017 at 4:19
  • @Antoine You don't have to set up an API, it's already provided.
    – gxx
    Sep 19, 2017 at 9:14
  • How can I use it like the exonerator though, where I plug in an IP and receive word back on whether it's an exit node? This API: [service port].[reversed service address].ip-port.exitlist.torproject.org isn't super clear to me, what's a reversed service address in this instance?
    – Anthony
    Sep 19, 2017 at 18:15
  • @Antoine Read the web page for DNSEL, under "What do the received answers mean?".
    – user15323
    Sep 19, 2017 at 18:23
  • @Antoine you can use github.com/assafmo/IsTorExit
    – assafmo
    Mar 28, 2018 at 5:30

I actually implemented the solution @duskwuff suggested.
Check it out at - https://github.com/assafmo/IsTorExit


npm install -g istorexit
istorexit [ip...]


const IsTorExit = require("istorexit");
IsTorExit("").then(console.log); // true
IsTorExit("").then(console.log); // false


On this link you can check if IP is an tor exit node.


Here's a perl solution based on https://github.com/assafmo/IsTorExit

my @ips = ('','','','','','');
foreach (@ips)
    print("IP: $_\n");

    # Build the command by reversing the IP address (ie. to
    # Checking via
    # (https://2019.www.torproject.org/projects/tordnsel.html.en - How can I query the public TorDNSEL service?)
    # Lookup from a linux system using dig (+short to have a light answer)
    my $cmd = "dig +short ".join(".", reverse split(/\./, $_)).".dnsel.torproject.org";
    my $res = `$cmd`;
    $res =~ s/^\s^|\s+$//g;
    print(" Command: [$cmd] ; Result: [$res]\n");

    # A records inside net 127/8, except, are reserved for future use
    # and should be interpreted by clients as indicating an exit node
    # (https://2019.www.torproject.org/projects/tordnsel.html.en - What do the received answers mean?)
    my $is_tor = 0;
    $is_tor = 1 if ($res =~ /^127\.0\.0\./ && $res ne "");
    print(" Is Tor? [$is_tor]\n");

Download the list of all exit node IPs from https://check.torproject.org/torbulkexitlist and check whether the IP is in the list.

Alternatively, you can do a DNS query to check a single IP address. Make a DNS A query to [reverse ip address].dnsel.torproject.org. If it returns, then the IP is a Tor exit IP address. For example, to check the address, you can run this console command:


If it returns Address:, then it's a Tor IP.

  • The list does not have ipv6 and is only about 1.3k items, other sources are showing 10k exit nodes...?
    – jjxtra
    May 3 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.