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.
- -- In my case, the login IDs are controlled by another application and an administrator creates all new login IDs. For all wikis with control over creation of new login IDs, there is no need to annoy logged in users with surge protection.
Maybe a “trusted group” could be a solution, like for the TextChas (textchas_disabled_group). -- MartinBayer 2008-04-19 14:17:14
- -- I thought about something along these lines as well. Rather than ask a user to slow down, present him with a textcha question and allow him to proceed if the question is answered correctly.