tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid...@pidster.com>
Subject Re: Denying IP Addresses
Date Tue, 09 Sep 2008 17:42:21 GMT
Edward Song wrote:
> Hi all, 
> 
>  
> 
> Just soliciting some feedback on how to effectively, thwart data mining on
> our server.
> 
>  
> 
> We have a reactive solution when it comes to screen scraping and data mining
> on Tomcat 5.5.  
> 
> We simply find the offending IP's and add them to the deny rules using the
> Valve - org.apache.catalina.valves.RemoteAddrValve
> 
>>>From what I understand, for changes to take effect, requires a restart of
> Tomcat.
> 
> I was thinking to override the RemoteAddrValve to retrieve offending IP's
> from a file as well, so as not requiring a restart everytime an offending IP
> is found.  
> 
> Our applications then would be able to identify offending IP's, and based on
> their own rules, add them to the file.  

it could be expensive to check the file for every request.
if you're going to do that, then consider caching the file and using an
internal thread to reload it periodically.

p


> 
>  
> 
> Is this a viable strategy?
> 
>  
> 
> Thanks in advance,
> 
> Ed
> 
> 


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


Mime
View raw message