cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Mask remote IP when querying page with libcurl in PHP?

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Sat, 19 Jul 2008 14:10:05 -0500

On Sat, Jul 19, 2008 at 2:00 AM, fcmodz <fcmodz_at_yahoo.com> wrote:

> Hi, I was wondering if it is possible to hide or fake a different IP
> address when using cURL binding in PHP to query webpages. Most webpages see
> the server's REMOTE_ADDR and use this for the IP. Is it possible to fill in
> any value you want to for this with cURL so the webpage analyzing your
> request will not see the actual server's IP address?

A proxy would probably do that for you. I have a web server at work that
I'd like to be able to limit access to using IP addresses. Unfortunately,
policy requires us to us a proxy for Internet access, and even though my
server is on the internal network, traffic to it is still routed through the
proxy, so the server logs everything as coming from the proxy.

Ralph Mitchell

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-07-19