tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudhir Bhoga <sudhirbh...@gmail.com>
Subject Re: Reg: IP based access
Date Tue, 16 Jul 2013 12:40:42 GMT
Hi Prakash,

In Tomcat 6 you can configure to restrict access based on the IP
address as below

Edit the below section of server.xml file in the conf folder with the
IP address of the end user in the deny field value
<Valve className=’org.apache.catalina.valves.RemoteAddrValve’ deny=’127.0.0.1’/>

These valves can be configured at Engine, Host and Context level.

Thanks
Sudhir

On Tue, Jul 16, 2013 at 6:36 AM, Prakash, Shreyas
<Shreyas_Prakash@gallup.com> wrote:
>
> Hi,
>
> Is it possible to restrict access/filter based on the IP address of the
> end user on a Servlet's mapping URL? If so, how? Please explain.
>
> I am aware of the fact that this can be achieved in Tomcat 7. However, I
> am interested to know how this could be achieved in Tomcat 6.
>
> Regards,
> Shreyas
>
>
> IMPORTANT NOTICE: This e-mail message and all attachments, if any, may
> contain confidential and privileged material and are intended only for the
> person or entity to which the message is addressed. If you are not an
> intended recipient, you are hereby notified that any use, dissemination,
> distribution, disclosure, or copying of this information is unauthorized and
> strictly prohibited. If you have received this communication in error,
> please contact the sender immediately by reply e-mail, and destroy all
> copies of the original message.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message