cURL and IP address simple question...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cjv01
Forum Newbie
Posts: 2
Joined: Sun Sep 07, 2008 8:50 am

cURL and IP address simple question...

Post 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
Cut
Forum Commoner
Posts: 39
Joined: Sat Aug 23, 2008 8:01 pm

Re: cURL and IP address simple question...

Post 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.
cjv01
Forum Newbie
Posts: 2
Joined: Sun Sep 07, 2008 8:50 am

Re: cURL and IP address simple question...

Post by cjv01 »

Thanks.

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