Exempt Logged In Users From Surge Protection

Many wikis allow the general public to read wiki pages, but only allow logged in users to edit wiki pages. On some wikis, the creation of new login IDs is restricted by one method or another. Telling a known user (who is obviously not a bot) to slow down is very annoying to the user.

Known logged in users should not be subjected to surge protection. The following adds this feature to /request/init.py on Moin 1.6.2. A more flexible alternative implementation would be to add a configuration option to wikiconfig.py and test for both a valid user and the configuration option.

291a292,293
>         if validuser:
>             return False        # do not subject logged on users to surge protection

(!) No, you don't want that. Otherwise some idiot can just create an account and then do bad stuff to your wiki. So please just adjust the limits as needed.


Maybe a “trusted group” could be a solution, like for the TextChas (textchas_disabled_group). -- MartinBayer 2008-04-19 14:17:14


CategoryFeatureRejected

MoinMoin: FeatureRequests/SurgeProtection (last edited 2008-04-19 15:00:20 by RogerHaase)