A
A
Andrew Flosin2020-02-03 21:32:47
PHP
Andrew Flosin, 2020-02-03 21:32:47

How to wrap php request through TOR?

Good day, the question is the title itself.
The volume of traffic can be said not to be large, all traffic from scripts

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Savostin, 2020-02-03
@savostin

/etc/tor/torrc
[+] SOCKSPort 127.0.0.1:9100

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
curl_setopt($ch, CURLOPT_PROXY, "127.0.0.1:9100");
...

It is assumed that tor and the script are on the same machine.

D
Dmitry Sviridov, 2020-02-03
@dimuska139

Good afternoon! Have you tried this https://hub.docker.com/r/dperson/torproxy/ ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question