Answer the question
In order to leave comments, you need to log in
How to change ip list from tor (PHP)?
Having installed the tor "apt-get install tor tor-geoipdb" on his server and configured it, he began to use it for his own purposes, using the function to change ip
function tor_change_proxy(){
$fp=fsockopen('127.0.0.1','9051',$error_number,$err_string,10);
if(!$fp){ echo "Error while changing Tor proxy identity: {".$error_number."} : {".$err_string."}<br />"; return false; }
else{ fwrite($fp,"AUTHENTICATE\n" ); $received=fread($fp,512); fwrite($fp,"signal NEWNYM\n" ); $received=fread($fp,512); }
fclose($fp);
return $received;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question