>You can reference that as cgi.http_x_forwarded_for -- and it will come back
>blank if not there, and with a list of IPs otherwise.

Yes, any CGI variable will also return blank when directly referenced and not 
available.

>So I supposed you could do something in your onrequest that if it exists
>replaces cgi.remote_addr

Actually, you can't. ColdFusion will throw an error if you try to set 
CGI.REMOTE_ADDR. Unless there's a Java layer work-around I'm not familiar with.

>Also note: the IPs returned could well be another proxy. It is still not a
>definitive end-point resolver.

Fair enough, but it's still vastly more useful than having every request (we 
deal with ~100k a day) appear to come from the same IP that you know isn't at 
all accurate.

>
>On Wed, Aug 1, 2012 at 5:11 PM, Matthew Gersting <mgerst...@gmail.com>wrote: 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352040
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to