Net::Tor::Servers - Perl extension to query a Tor Directory and collect information on servers


Net-Tor-Servers documentation  | view source Contained in the Net-Tor-Servers distribution.

Index


NAME

Top

Net::Tor::Servers - Perl extension to query a Tor Directory and collect information on servers

SYNOPSIS

Top

  use Net::Tor::Servers;

  my $torsrv = new Net::Tor::Servers;
  my @servers = $torsrv->getservers;

  for my $i (0..$#servers) {
    print "IP: $servers[$i][0], Name: $servers[$i][1], ORPort: $servers[$i][2], DirPort: $servers[$i][3]\n";
  }

DESCRIPTION

Top

This module was written to make life a little easier for me when I have been developing a dymanic blocklist for educational institutions to prevent students from being able to circumvent legally required content filtering systems.

Its nothing special, just a quick and easy way to get the data together in an array.

An alternative server and port can be specified:

  my @servers = $torsrv->getservers($server,$port);

  where $server is the IP / hostname of a Tor Directory Server, and $port is the port number.

SEE ALSO

Top

N/A

AUTHOR

Top

Andy Dixon, <ajdixon@cpan.org> www.andydixon.com

COPYRIGHT AND LICENSE

Top


Net-Tor-Servers documentation  | view source Contained in the Net-Tor-Servers distribution.