find real ip address coldfusion
finding real IP address for client machines, that's not very technical but it was five years ago for me when I was trying to get real ip address for project in company NCR.
I was always getting ip address of download proxy server or some other proxy server.
I found this simple code to by pass any proxy server (download/proxy server/ or any one).
<
cfif
CGI.HTTP_X_Forwarded_For NEQ
""
>
<!--- Checking proxy address --->
<
cfset
real_ipaddress =
CGI.HTTP_X_Forwarded_For
>
<
cfelse
>
<
cfset
real_ipaddress =
CGI.REMOTE_ADDR
>
</
cfif
>
No comments:
Post a Comment