[tor-relays] Api for atlas.torproject.org

teor teor2345 at gmail.com
Fri Feb 16 10:36:10 UTC 2018


> On 16 Feb 2018, at 17:49, Felix <zwiebel at quantentunnel.de> wrote:
> 
> Hey
> 
>> Am 16-Feb-18 um 02:26 schrieb flipchan:
>> Hey,
>> Im trying to write an ip checker script for a mail server/firewall and i
>> want to be able check if the ip is a tor relay, is their a api for
>> looking up ips on atlas.torproject.org ?
>> 
>> Or any other easier way to do it in like python :)

For exit IP addresses, you can query the bulk exit list, or Onionoo.

> You can run a tor client and:
> # grep "a.b.c.d" /var/db/tor/cached-consensus

The cached consensus only contains ORPort addresses, not exit IP
addresses. Most are the same, some are different.

T


More information about the tor-relays mailing list