Let’s say user1 tried to access my server at 11.11.11.11 using foo1.com
and user2 tried to access my server at 11.11.11.11 using foo2.net
is it possible to differentiate those requests when programming with Java + servlet?
Thanks : )
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When the HTTP GET comes in you get the original URL. This means you don’t actually get the IP address the client tries to connect to. e.g. if the request is forwarded, BNATed or proxied.
In short, you only have the URL, which includes the host name. You can look in the header and perhaps the client will tell you what IP address its connected to.