php curl run send proxy ip -
i made curl script , script blocked after website detects bot.
how can prvent ,
i tried below code
$ch = curl_init(); $proxy = "10.128.60.40:3128"; // needed disable ssl checks site curl_setopt($ch,curlopt_ssl_verifyhost,0); curl_setopt($ch,curlopt_ssl_verifypeer,0); curl_setopt($ch,curlopt_verbose, 0); curl_setopt($ch,curlopt_autoreferer, false); curl_setopt($ch, curlopt_header, 0); curl_setopt($ch, curlopt_useragent, 'mozilla/5.0 (windows nt 5.1; rv:13.0) gecko/20100101 firefox/13.0.1'); curl_setopt($ch, curlopt_returntransfer, 1); curl_setopt($ch, curlopt_httpproxytunnel, 1); curl_setopt($ch, curlopt_proxy, "$proxy");
but still data blocked due automated script,
how can u send dynamic ip avoid issue
you should use:
1) anonimous proxies (dies quick , need parse them)
or
2) tor https://www.torproject.org
or
3) not active. use sleep(1); in code
Comments
Post a Comment