this code will help to get real ip address through cgi variable in coldfusion
<
cfif
CGI.HTTP_X_Forwarded_For EQ
""
>
<
cfset
real_ipaddress = CGI.REMOTE_ADDR>
<
cfelse
>
<
cfset
real_ipaddress = CGI.HTTP_X_Forwarded_For>
</
cfif
>
No comments:
Post a Comment