Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1028659 // Eleu: Set Spam Threshold [only on server]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

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.");
  }
}

Author comment

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: 198 / 135008
Version history: 2 change(s)
Referenced in: