Say we track the end user IP address for a web service:
ip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If ip = "" Then
ip = Request.ServerVariables("REMOTE_ADDR")
End If
I read that this is the best way to get the IP address of the end user, since it works even for users on a transparent proxy.
If we use the end user's IP address to filter out malicious users, are there any security implications for the above method, and not, say, just using Request.ServerVariables ("REMOTE_ADDR")?
For example, if we blocked an attacker by the IP address of the end user, could they easily change their IP address through a proxy server and continue using our web service?
Thanks in advance for your help.
source
share