Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to restrict access through IP Adress  RSS feed

 
Pete Neu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the Valve docs for Tomcat. Specifically, there is a RemoteAddrValve that uses regular expressions for the allow and deny lists.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!