I havn't been able to test it out, thought somebody here would know...

It's strange as I've never seen it before in a list of usable cgi.variables.

Did a quick search on Google and turned up this which is interesting:

zackmsg said on Jun 17, 2002 at 3:19 PM :
Behind a firewall's proxy server, I have found "CGI.HTTP_X_Forwarded_For" to reveal the User's actual IP Address rather than the proxy server's IP when using "CGI.Remote_Addr"

http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/Expressions5.htm

Andrew.

> So Andrew....does the CGI.HTTP_X_Forwarded_For give the IP of the
> computer behind a proxy server??
>
> Thanks
>
> Bryan Stevenson B.Comm.
> VP & Director of E-Commerce Development
> Electric Edge Systems Group Inc.
> t. 250.920.8830
> e. [EMAIL PROTECTED]
>
> ---------------------------------------------------------
> Macromedia Associate Partner
> www.macromedia.com
> ---------------------------------------------------------
> Vancouver Island ColdFusion Users Group
> Founder & Director
> www.cfug-vancouverisland.com
  
> ----- Original Message -----
  
> From: Andrew Grosset
  
> To: CF-Talk
  
> Sent: Monday, June 21, 2004 8:23 PM
  
> Subject: Re: HitBox for web traffic/marketing
>
>
  
> came across this cgi.variable the other day, not sure if this helps or
> not but:
>
  
> ColdFusion with Proxy detection:
>
  
> <cfif CGI.HTTP_X_Forwarded_For EQ "">
   
> <cfset ipaddress=CGI.Remote_Addr>
   
> <cfset a=1>
  
> <cfelse>
   
> <cfset ipaddress=CGI.HTTP_X_Forwarded_For>
   
> <cfset a=2>
  
> </cfif>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to