Google search detects my curl request. But how google does that? When I send request from my browser with proxy there is no captcha. Then I send the same request from curl and captcha appears. I think if I send the same request I will receive the same response. Or not?
$url = 'http://www.google.com/search?q=curl';
$host = parse_url($url);
$host = $host['host'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0",
"Accept-Encoding: gzip, deflate, br",
curl_setopt($ch, CURLOPT_PROXY, 'http://184.108.40.206:42084');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_SSLVERSION, 3);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_VERBOSE, true);
Notice when I send request without proxy it works.