You can use Tor proxy with php in localhost. Using cURL. Put your local IP address in the LAN proxy configuration "No proxy for:". Example 192.168.1.10. Then name your php as " http://192.168.1.10/your_script.php "
$proxy = '127.0.0.1:9150'; $ur = "http://anydomain.com"; $ch = curl_init(); curl_setopt($ch, CURLOPT_PROXY, $proxy); curl_setopt($ch, CURLOPT_PROXYTYPE, 7); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_URL, $ur); $curl_scraped_page = curl_exec($ch); $error = curl_error($ch);
source share