Skip to content
Snippets Groups Projects
  1. Dec 16, 2020
  2. Oct 05, 2020
  3. Mar 31, 2020
  4. Dec 20, 2019
  5. Dec 10, 2019
  6. Dec 05, 2019
  7. Jan 03, 2019
  8. Jan 14, 2018
  9. Nov 06, 2017
  10. Apr 13, 2017
    • Lukas Reschke's avatar
      Add support for ratelimiting via annotations · 66835476
      Lukas Reschke authored
      
      This allows adding rate limiting via annotations to controllers, as one example:
      
      ```
      @UserRateThrottle(limit=5, period=100)
      @AnonRateThrottle(limit=1, period=100)
      ```
      
      Would mean that logged-in users can access the page 5 times within 100 seconds, and anonymous users 1 time within 100 seconds. If only an AnonRateThrottle is specified that one will also be applied to logged-in users.
      
      Signed-off-by: default avatarLukas Reschke <lukas@statuscode.ch>
      66835476
Loading