There are for of them to check i think: HTTP_X_FORWARDED_FOR HTTP_X_FORWARDED HTTP_FORWARDED_FOR HTTP_FORWARDED
On 27/06/06, Gareth <[EMAIL PROTECTED]> wrote: > :) > > I have a similar setup: Apache proxy to IIS box. Took me ages to find the > x_forwarded_for cgi thing. > > Glad it helped. > > > ----- Original Message ----- > From: "Andy Matthews" <[EMAIL PROTECTED]> > To: "CF-Talk" <[email protected]> > Sent: Tuesday, June 27, 2006 8:13 PM > Subject: RE: Getting the user's IP address > > > Hmmm... > > That looks to have done it. > > http://bigcomfycouch.com/NEWask.cfm > > You rock Gareth. > > <!----------------//------ > andy matthews > web developer > certified advanced coldfusion programmer > ICGLink, Inc. > [EMAIL PROTECTED] > 615.370.1530 x737 > --------------//---------> > > -----Original Message----- > From: Gareth [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 27, 2006 2:02 PM > To: CF-Talk > Subject: Re: Getting the user's IP address > > > CGI.HTTP_X_Forwarded_For > > Might help. > > ----- Original Message ----- > From: "Andy Matthews" <[EMAIL PROTECTED]> > To: "CF-Talk" <[email protected]> > Sent: Tuesday, June 27, 2006 7:40 PM > Subject: Getting the user's IP address > > > I'm supposed to be storing the user's IP address in a table. I looked up the > docs and chose CGI.REMOTE_ADDR as the "right" variable. Now the client > emails me and says that all of the form submissions are coming from > 127.0.0.1. I check in the database and indeed, every one of the submissions > is shown as coming from that address. So I thought I'd try remote_host, but > that one does the same thing. > > So then I dumped the entire CGI scope and every instance of IP address is > lsited as 127.0.0.1. You can see here I'm dumping remote_addr and > remote_host. > > http://bigcomfycouch.com/NEWask.cfm > > But when I output them via our Perl test script: > http://bigcomfycouch.com/cgi-bin/env.pl > > I get the "correct" IP addy. > > What's going on? > > <!----------------//------ > andy matthews > web developer > certified advanced coldfusion programmer > ICGLink, Inc. > [EMAIL PROTECTED] > 615.370.1530 x737 > --------------//---------> > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244897 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

