Forum OpenACS Development: Re: Blocking access to login based on repetitive hits by ip address?

here is the first shot of the package.
  http://media.wu-wien.ac.at/download/throttle+stats0.1.tar.gz

I have removed the site specific content, changed
the place where the throttle check is placed
(we had it in the request processor, moved it
into a filter - still seems to work), made it
usable from plain AS and OACS. Hope that i
introduced no glitches....

Contents:

  ./README
  ./COPYRIGHT

    # user interface
  ./pages/stat.tcl
  ./pages/stat.adp
  ./pages/stat-details.adp
  ./pages/stat-details.tcl
  ./pages/backcolor.gif

  # main packages
  ./modules
  ./modules/tcl
  ./modules/tcl/throttle_mod.xotcl
  ./modules/tcl/thread_mod.xotcl

This distro should really split into two pieces,
thread-mod and throttle+stats in the near future.

-gustaf neumann

Gustaf,

As I began a code audit and subsequently started to research XOTcl (to which I've never been exposed), I uncovered the fact that you are a primary creator of XOTcl. So, I expect that your contribution will serve as an excellent intro to XOTcl! Thank you so much for sharing.

/R

Collapse
16: throttle+stats (response to 14)
Posted by Andrew Piskorski on
Gustaf, your stats and throttling package definitely does sound interesting. Is it actually dependent on OpenACS in any way though? I suspect that it can be used on any AOLserver site which has XOTcl and the Tcl Thread Extension installed for AOLserver, whether OpenACS is installed or not - is that correct?

Hm, I see a bit of code that is in pages/stat.tcl that uses the OpenACS templating system if it is present, but that's optional, it will still work fine in plain AOLserver?

Collapse
17: Re: throttle+stats (response to 16)
Posted by Andrew Piskorski on
Oh my, I didn't read very carefully: Gustaf already said above that his throttle+stats package works both with OpenACS and without it. Sorry.