how can I get client IP addresses?

D

DirkDiggler

hello

How can I get a client IP address, and if he uses proxy
his (forwarded for) original address in my web application?
Thanks in advance
Luke
 
B

bruce barker

You would need to use an (unsafe) active/x control to do this.


-- bruce (sqlwork.com)
 
E

Eric Lawrence [MSFT]

You can use the Request object to grab this information; if his proxy is
kind, you can grab the x-forwarded-for header to check for the Origin-IP.

However, please note that HTTP RFCs don't require this header, and proxy
servers are free to omit it. Also, given the ease with which these are
forged, I hope you're not relying on this for security decisions...

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top