cronjob and use another IP than server IP

pppplus

Verified User
Joined
Dec 19, 2008
Messages
524
Hi

I need to do a lot of whois requests with cronjobs.
But, some whois server block me, because my IP has to much request.

Is it possible, to use another IP of the server, or use proxy IP using cronjobs ?

Thanks for your replies, or ideas.
 
Hello,

Show your code, without knowing how you do it, it's hard to give you a correct answer (it can be done with cURL at least). Note, there are paid services, which will help you with the issue. You can buy as many requests per hour, as you need. Google it if you're interested.
 
Hi zEitEr

I only send : fsockopen($hote, 43, $errno, $errstr, 10) where $hote is whois server.

I already try it with cUrl, but it's always server IP that is shown in server results.

Code:
<?php
if($fp = fsockopen($hote, 43, $errno, $errstr, 10))
{
	 fputs($fp, $domaine . "\r\n");
	 $line = fgets($fp, 128);
	 $buf .= $line;
}
?>

And $buf contains anwser like this :
whois.domain-registry.nl: daily whois-limit exceeded for client MY.SER.VER.IP
 
Back
Top