Elytrium / LimboFilter

Powerful bot filtering solution for Minecraft proxies. Built with LimboAPI.
https://elytrium.net/
GNU Affero General Public License v3.0
150 stars 42 forks source link

[ENHANCEMENT] Captcha cache in Redis (maybe even stats in Redis?) #8

Open realkarmakun opened 2 years ago

realkarmakun commented 2 years ago

Describe the feature you'd like to have implemented It would be nice to have a command or Java code API means to enable "protection" on a server.

Is your feature request related to an existing problem? Please describe. Right now I have around 8 velocity instances. Using filter-toggle options is not really beneficial since under normal loads we have 8 Connections per second to frontend, and less than 1 connection per second on each instance. I could setup it in a way to be enabled on a slightest load change but our project has a "wipe every n days" kind of gameplay. So essentially players log in all at once one time in two weeks or so. Enabling captcha at this time is undesirable.

I am aware of /bf reload command, but I just don't want to redact configs on all 8 instances :9

Additional context Command would be enough for me personally and there is no need for full featured API.

realkarmakun commented 2 years ago

Would probably make sense not to save switch status between restarts and default it to disabled. If user can restart the server he might as well change config file to fit his needs.

realkarmakun commented 2 years ago

After further research I came to conclusion that my math was wrong, and CPS on instances can be either much higher or much lower. This could be solved other way around by delegating statistics to database of some sorts (redis sync in LibmoFilter Pog) and acting upon unified stats. Though run time means to enable/disable still would be nice.

realkarmakun commented 2 years ago

@hevav Кеш капчи в редисе чтобы облегчить жизнь мультиинстансам? Было бы мило иметь стату там же, но это второстепенно (учитывая формат хранения статистики не уверен что редис подойдет)

Пингую, потому что никто не отвечает :(

hevav commented 2 years ago

Редис подойдет в этом случае Видел эту идею в дискорде Будет реализовано