How can I check if IP is a Tor exit node?

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?


The Tor Project has a tool to do this at:

https://exonerator.torproject.org/

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

https://www.torproject.org/projects/tordnsel.html.en


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

CLI:

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

NodeJs:

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

https://www.ipqualityscore.com/tor-ip-address-check/lookup

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