Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Filter on url example - Filter out hack attempts

lrnobs

2004-05-08

Replies:

I have had no luck Googling so far for an example on how to filter based on
urls.

I thought I might put this in the AccessLogValve but will do whatever works.

I have a limited number of jsp's and graphics on my site and would like to
filter out all of the hack attempts that fill up my logs.

I would like to do something like this (in plain english)

Accept
GET / HTTP/1.1
GET / HTTP/1.0
*page1.jsp*
*page2.jsp*
*page3.jsp*
*page4.jsp*
*page5.jsp*
*graphic1.gif*
*graphic2.gif*

Drop All Other Requests - they are just hack attempts

Thanks,

Larry Nobs



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.