Closed evandrodacs closed 1 year ago
Are you referring to ProgramTokenBucket functionality in Redbean?
Using the ProgramTokenBucket function and others (unix.setrlimit, ...)
Example: after activating a function e.g. DdosProtect(hitsByUniqueIP)
, fullmoon routes are limited. Basically fullmoon implements code from redbean documentation.
@evandrodacs, you should be able to use tokenBucket
options (which maps to ProgramTokenBucket call): fm.run{tokenBucket = {{1, 24}}}
. See the run documentation for how to specify the options.
I'm closing this, as it should be covered by the tokenBucket functionality available, but let me know if you run into any issues.
Hello,
An interesting feature would be to implement: a DDOS protection system built into fullmoon, which we could easily activate. You can use the example in the redbean.dev documentation.
Thanks!