The HttpServletRequest object has a method for getting the client's IP address (getRemoteAddress or something like that); is that sufficient?
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.
Maybe user authentication is the way to go.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com