You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by John Buwa <jo...@tcpbbs.net> on 2002/01/09 06:27:12 UTC

Ip Address On Outbound

 Hello,

I havea question on outbound ips. I am writing a program that a user can
enter an address and a spider will go and retrieve only the information that
was request and then display the results to the enquiring user. My question
is though, i have grabed the users ip address as the initiator of the
request and i would like to use that ip address (The users) to send the http
request instead of my systems addres. How would i changed outgoing requests
to reflect the invoking users ip and not my systems ip?

Thanks in advance,
John


Re: Ip Address On Outbound

Posted by Luciano Miguel Ferreira Rocha <st...@nsk.yi.org>.
On Wed, Jan 09, 2002 at 12:27:12AM -0500, John Buwa wrote:
> How would i changed outgoing requests
> to reflect the invoking users ip and not my systems ip?

You can't just change the ip you use to connect to other systems...

But you may have some luck in using the Via: and X-Forwarded-For: headers:
GET / HTTP/1.0
Via: 1.0 agent.mydmn.net:3128 (Yet Another Agent/0.0.1.0a)
X-Forwarded-For: 192.168.0.1

Regards,
Luciano Rocha

-- 
Luciano Rocha, strange@nsk.yi.org

The trouble with computers is that they do what you tell them, not what
you want.
                -- D. Cohen

Re: Ip Address On Outbound

Posted by "Doran L. Barton" <fo...@iodynamics.com>.
Not long ago, John Buwa proclaimed...
> I havea question on outbound ips. I am writing a program that a user can
> enter an address and a spider will go and retrieve only the information that
> was request and then display the results to the enquiring user. My question
> is though, i have grabed the users ip address as the initiator of the
> request and i would like to use that ip address (The users) to send the http
> request instead of my systems addres. How would i changed outgoing requests
> to reflect the invoking users ip and not my systems ip?

Being as how the IP address is part of the TCP/IP protocols and not HTTP,
I can't see how Apache (or mod_perl) can do anything about that. You can't
spoof IPs at the application layer if you're doing network transactions.

-=Fozz

-- 
-------------------------------------------------------------------------
Doran L. Barton <fo...@iodynamics.com> - Chief Super Hero - Iodynamics LLC
< http://www.iodynamics.com/ > - Linux solutions and dynamic websites
 "Pepsi brings your ancestors back from the grave."
    -- 'Pepsi Comes Alive' as originally translated into Chinese