Something like a singleton tapestry service with an access-synchronized map inside maybe?

Uli

James Sherwood schrieb:
Hello,

I am not him:)(if that makes sense:) but I am doing the same thing right
now.

I am using the database not to slow connections but block IP's that get 100
failed login attempts over 2 minutes(blocked for 1 hour).

I like your idea of a map held in memory much better.

But how do I create an application wide map(object) in T5?

Sorry for kind of hijacking your thread Peter:)

--James

-----Original Message-----
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: February-11-09 8:52 AM
To: Tapestry users
Subject: Re: IoC question - introducing a time delay in an ASO

On Wed, Feb 11, 2009 at 10:46 AM, James Sherwood
<jsherw...@rgisolutions.com> wrote:
Hello,

Hi!

Doesn't most dictionary style attacks create a new request each time
therefore creating a new ASO? Kind of like closing your browser and
reopening it each time?

They are done by bots (programs), not people, so I guess you're right.

If not this is a much better idea than mine of delaying the IP.

Your code was not delaying the IP, it was delaying the session. It's
not the same. Implement it using an application-wide map <ip, login
attempts> instead of relying on an ASO. This has another advantage:
you don't create a session when you don't need to.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to