Page 1 of 1

cURL and IP address simple question...

Posted: Sun Sep 07, 2008 8:52 am
by cjv01
Hi

I'm not a coder although I tend to tinker a little!

I have a question in regards to Curl in php.

I'm working on a Curl process which submits data to a specific website.

I can understand that if I just run it via Cron then it will always have the same IP as the referrer - ie my server.

However, what IP would show if I used this process...

1) Five users from around the world click on an email link I send them
2) This runs my process to update 3rd party site and then redirects user to my site

So would the 3rd party site see 5 different IPs from around the world - or 5 instances of my server's IP?

Sorry if it's obvious, I just would like to know how this could work?

Many thanks in advance

Re: cURL and IP address simple question...

Posted: Sun Sep 07, 2008 10:48 am
by Cut
Your server's IP.

You could use curl_setopt with CURLOPT_PROXY if this is a problem. I've seen people install Tor and use it with localhost:8118, which is very convenient.

Re: cURL and IP address simple question...

Posted: Sun Sep 07, 2008 1:02 pm
by cjv01
Thanks.

I'll get someone more experienced than me to take a look at TOR!