Let's say we're tracking the end-user IP for a web service:
ip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If ip = "" Then
ip = Request.ServerVariables("REMOTE_ADDR")
End If
I've read that this is the best method of retrieving end-user IP because it works even for users on a transparent proxy.
If we're using the end-user IP address to filter malicious users, are there are any security implications with the above method instead of, say, just using Request.ServerVariables("REMOTE_ADDR")?
For example, if we banned a malicious user by end-user IP, could they easily change their IP via a proxy and continue using our web service?
Thanks in advance for your help.