Good evening.

Wonders if there is a Tor API project and if there is any documentation or usage examples. He wonders if it is possible to develop something like this with the help of these tools: use the chains that Tor builds the browser to access the site. And then update these chains, similarly to the option "Change of personality". Can be used to cheat from different IP addresses. Well, this is an example. For a start, you can implement something like this: create a website with a button to which the click will be read from only one IP.

PS Tell me what tags you can put.

    2 answers 2

    As an option I can offer the following:

    You create docker containers (tor) with a different range of ports, connect through SOCKS5 and, if necessary, restart the chains inside or the container.

    Example. We make a scale suppose of 100 containers, as soon as it has worked we are doing a chain update, and so on.

      You can change the ip and make the request again. To change the link (ip) after authentication you need to send:

       signal NEWNYM 

      Examples of use on the official site is not found. You can use this function:

       $config = array( 'host' => '127.0.0.1', 'port' => 9050, 'controlPort' => 9051, 'controlPass' => 'pass', ); function setTorNewIp(array $config) { $fp = @fsockopen( $config['host'], $config['controlPort'], $errno, $errstr, 10 ); if (!$fp) { // Error: can not connect to TOR control port return false; } fputs($fp, "AUTHENTICATE \"{$config['controlPass']}\"\r\n"); $response = fread($fp, 1024); list($code, $message) = explode(' ', $response, 2); if ($code != '250') { // Error: can not authenticate to TOR control port return false; } // запрос на смену звена fputs($fp, "signal NEWNYM\r\n"); $response = fread($fp, 1024); list($code, $message) = explode(' ', $response, 2); if ($code != '250') { // Error: TOR ip has not been changed return false; } fclose($fp); return true; }