Hi,

I tried to read html content of 100 links.
It is working for few links,after few links it is asking for captcha.
E.g:- It check 30 links then captcha come.
Again After few hours gone. it start working
.
because of this i used proxy using cURL.But still captch coming.

$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL,"http://www.whatismyip.com/");
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0);
curl_setopt($ch, CURLOPT_PROXY, '173.208.14.220:13883');
$page = curl_exec($ch);
echo $page;
curl_close($ch);

Please give me some idea to solve this?

Do you own the domain that you mention in your script? If you do there are many ways, if you don’t just stop this logic…

To open any site and read html content through Curl, Does not need domain owner.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.