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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -