From 84de1af960403e328189fb9f20ff2ac272d39f15 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 30 Aug 2019 09:37:50 +0100 Subject: [PATCH] Merge pull request #2108 from overleaf/sk-add-rate-limit-to-project-page Add a rate limit to the `/project` page GitOrigin-RevId: ef77f092c94c6a88fc73354cee6b8572b84d3d3a --- services/web/app/src/router.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/web/app/src/router.js b/services/web/app/src/router.js index 8d1e4cb63d..c589b3bfb9 100644 --- a/services/web/app/src/router.js +++ b/services/web/app/src/router.js @@ -262,6 +262,11 @@ function initialize(webRouter, privateApiRouter, publicApiRouter) { webRouter.get( '/project', AuthenticationController.requireLogin(), + RateLimiterMiddleware.rateLimit({ + endpointName: 'open-project', + maxRequests: 20, + timeInterval: 60 + }), ProjectController.projectListPage ) webRouter.post(