Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Built-in DDOS Protection #18

Closed
evandrodacs opened this issue Feb 24, 2023 · 3 comments
Closed

[Suggestion] Built-in DDOS Protection #18

evandrodacs opened this issue Feb 24, 2023 · 3 comments
Assignees

Comments

@evandrodacs
Copy link

evandrodacs commented Feb 24, 2023

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!

@pkulchenko pkulchenko self-assigned this Feb 24, 2023
@pkulchenko
Copy link
Owner

Are you referring to ProgramTokenBucket functionality in Redbean?

@evandrodacs
Copy link
Author

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.

pkulchenko added a commit that referenced this issue Mar 4, 2023
This allow specifying trustedIp, tokenBucket, and other options (#18).
@pkulchenko
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants