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_prak...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to