The HttpServletRequest object has a method for getting the client's IP address (getRemoteAddress or something like that); is that sufficient?
Ping & DNS - updated with new look and Ping home screen widget
Joined: Mar 09, 2007
No That is not sufficient. I need the website address actually.
Thanks for your reply.
Joined: Mar 22, 2005
What do you mean by "website address"? An HTTP request does not originate from a web site, it originates from a machine that has a specific IP address, and which in all likelihood does not host a web site.
Are you saying (for example) that only employees of a specific company should access your web site? If so, the admin of that company can give you the range of IP addresses from which the employees might be accessing your server. Of course, then they can't use the site if they're at home or on the road.