Jump to content

Using Proxy Servers With PHP Script

- - - - -

  • Please log in to reply
No replies to this topic

#1
rsnider19

rsnider19

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
I have a PHP script which basically makes multiple Google searches very quickly and after testing it in rapid succession, Google asks if I am human. How can I use proxy servers to alleviate this problem?

I tried:

$i=array(CURLOPT_RETURNTRANSFER => 1, CURLOPT_PROXY => "xxx.xxx.x.x", CURLOPT_PROXYPORT => 60099, CURLOPT_PROXYUSERPWD => $user.':'.$pass, CURLOPT_COOKIESESSION => true, CURLOPT_FRESH_CONNECT => true, CURLOPT_HTTPPROXYTUNNEL => 0);

$ch=curl_init("http://www.example.com/");

curl_setopt_array($ch, getCurlOpt());

$html=curl_exec($ch);

curl_close();






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users