Uses 911K of libraries. Click here for Pure Java version (2429L/13K).
!7 cmodule SetSpamThreshold > DynPrintLog { switchable double threshold = 2.0; // requests per IP + second start { dm_watchFieldAndNow threshold(r doIt); } void doIt { set(mainMainClass(), simpleSpamClientDetect2_perSecondThreshold := threshold); print("Set threshold to " + threshold + " requests per IP + second."); } }
Began life as a copy of #1027400
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028659 |
Snippet name: | Eleu: Set Spam Threshold [only on server] |
Eternal ID of this version: | #1028659/3 |
Text MD5: | 9927dc4fd1a9d7faa10b183349b97bf7 |
Transpilation MD5: | ed95c3b09abd0ab4c8c40abe1d3122b7 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-02 14:11:37 |
Source code size: | 363 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 197 / 134970 |
Version history: | 2 change(s) |
Referenced in: | [show references] |