diff --git a/posthog/settings/web.py b/posthog/settings/web.py index 08c7f0076961..5db9b238ca7c 100644 --- a/posthog/settings/web.py +++ b/posthog/settings/web.py @@ -239,6 +239,14 @@ X_FRAME_OPTIONS = "SAMEORIGIN" REST_FRAMEWORK = { + 'DEFAULT_THROTTLE_CLASSES': [ + 'rest_framework.throttling.AnonRateThrottle', + 'rest_framework.throttling.UserRateThrottle' + ], + 'DEFAULT_THROTTLE_RATES': { + 'anon': '100/hour', + 'user': '1000/hour' + }, "DEFAULT_AUTHENTICATION_CLASSES": [ "posthog.auth.PersonalAPIKeyAuthentication", "rest_framework.authentication.BasicAuthentication",