This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to restrict access through IP Adress Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to restrict access through IP Adress" Watch "How to restrict access through IP Adress" New topic
Author

How to restrict access through IP Adress

Pete Neu
Ranch Hand

Joined: Feb 18, 2005
Posts: 86
Hello,

I have to restrict the access to my application through the IP number of the client. I the normal apache webserver this is easily done through htaccess. But in tomcat there are only logins via user and password possible. What can I do to grant access through IP adress?

cheers,

Pete
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
Take a look at the Valve docs for Tomcat. Specifically, there is a RemoteAddrValve that uses regular expressions for the allow and deny lists.


<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
 
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
 
subject: How to restrict access through IP Adress
 
It's not a secret anymore!