wood burning stoves 2.0*
The moose likes JSP and the fly likes How can i restrict user from accessing my Web Application? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How can i restrict user from accessing my Web Application?" Watch "How can i restrict user from accessing my Web Application?" New topic
Author

How can i restrict user from accessing my Web Application?

Usman Saeed
Ranch Hand

Joined: May 21, 2008
Posts: 31
Hello, i want to access my web application only with in the local network. I don't want any user access web application out side the local network.
Please give me some suggestions how can i do this. I am using jsp,javascript,sqlserver and tomcat as server.


Usman Saeed
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
You may configure a firewall [that fill filter out requests from IP addresses outside your network].


http://www.skillassert.com


Usman Saeed
Ranch Hand

Joined: May 21, 2008
Posts: 31
thanks for reply karthi,
i have to deploy application to client and its an agreement that my client will access that application only within local network. so i have to apply restriction within source code.
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
Then you may get the client IP from the HTTP request and verify if it is within the permissible range [using some configuration files]
Usman Saeed
Ranch Hand

Joined: May 21, 2008
Posts: 31
I can not hardcode all IP addresses of network, what if new system attached or IP address changed of some computer.Can not i check on domanin or proxy etc? or something like that?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i restrict user from accessing my Web Application?
 
Similar Threads
Manage Network Files
Java Web Start Security
servlet validation?
testing application
Web Service over LAN