enable_proxy
enable_proxy($connection,$proxy,$recreate = true); - set proxy (proxy is installed only on the current copy, each copy of human can have its own proxy). Except anonymous proxies, in the same way it is possible to use Tor + Privoxy to improve anonymity. How to set up tor + privoxi - you can find out here.There is also a class for working with SOCKS5 proxy
the input Function accepts parameters:
$connection – used for compatibility with previous versions of human, can be set as "" - empty string or "all_connection"$proxy – installed proxy (for example, 127.0.0.1:8080 ), and starting from version 7.0.7, you can also pass the username and password from the proxy (for example, "127.0.0.1:8080;login;password")recreate – specifies whether to recreate the browser immediately (by default) or manually (available from version 6.0.44 )
After testing, the function returns the result of its work to the script :
true – completed successfully
false – failed