Uses 911K of libraries. Click here for Pure Java version (2429L/13K).
1 | !7 |
2 | |
3 | cmodule SetSpamThreshold > DynPrintLog {
|
4 | switchable double threshold = 2.0; // requests per IP + second |
5 | |
6 | start {
|
7 | dm_watchFieldAndNow threshold(r doIt); |
8 | } |
9 | |
10 | void doIt {
|
11 | set(mainMainClass(), simpleSpamClientDetect2_perSecondThreshold := threshold); |
12 | print("Set threshold to " + threshold + " requests per IP + second.");
|
13 | } |
14 | } |
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: | 438 / 183229 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |