We have a script running on a managed server (LAMP) that uses php/curl to post a user's query to a remote server and then display the results that are returned. What we would like to do is anonymize the users by passing our server IP to the remote server instead of the user IP. How can we implement this? Any suggestions will be appreciated and tried with no hard feelings or snide comments if it doesn't work. We're out of ideas. Thank you.
tor
curl bot.whatismyipaddress.com => 91.240.86.250
use sock:
curl bot.whatismyipaddress.com --socks5 127.0.0.1:9050 => 178.17.174.99
use php
curl_setopt($ch, CURLOPT_PROXY, 127.0.0.1 . ":" . 9050);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);