You can write a filter on the context and based on
request.getRemoteAddr() do the processing
Guru
-----Original Message-----
From: Fredrik Jonson [mailto:[EMAIL PROTECTED]
Sent: 11 April 2005 12:12
To: [email protected]
Subject: Filtering remote host access from web.xml
Hello,
I want to limit access to a specific servlet based on the requesting clients
host name and address. I'm aware of the RemoteHostValve, but as I understand
the specification it can only be used by editing the server.xml file, and I
would prefer to have a method to control it in the web.xml file.
Basically, what I'd need is a RemoteHostFilter, but i find no reference to a
such a creature. Of course I could write one myself, but I cannot imagine
that no one have had this problem before me.
So, what is a good approach on this?
(I'm using tomcat 4.1.31)
regards,
--
Fredrik Jonson
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]