tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph <wutong...@gmail.com>
Subject Re: How-to-achieve-url-maxtry-filter-in-apache-tomcat
Date Mon, 27 Aug 2012 07:04:37 GMT
Have u tried to use regex to filter URL ,use concurrent hash map and atomic int to count?

在 2012-8-27,13:30,"rathinasamy.r.s@snovabits.net" <rathinasamy.r.s@snovabits.net>
写道:

> Hi everyone,
> 
> Please give me some ideas to achieve maxtry concept.
> 
> I want to destroy the url path after some amount of access.
> 
> For eg., if I give maxtry = 2 for the run time generated url (http://localhost:8080/Club/dely/ios/item/42/23/cc.mp4),
After the two times access of the above url for the third time that url path will not be able
to access for anyone.
> 
> _My environment is:_
> 
> Apache-tomcat-7.0.25*
> *Windows 7
> 32 bit Operating system
> 
> How to achieve this using apache filter?
> 
> Thanks in advance,
> Rathinasamy.

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


Mime
View raw message