feat: implement rate limiting policy for site info endpoints in Auth and Paste controllers

This commit is contained in:
2026-01-20 17:09:31 -05:00
parent 8a6ab29f52
commit 3895bd9681
3 changed files with 4 additions and 0 deletions
+2
View File
@@ -139,6 +139,8 @@ namespace SharpbinV3.Server
}
));
options.AddPolicy("NoLimit", _ => RateLimitPartition.GetNoLimiter());
options.GlobalLimiter = PartitionedRateLimiter.Create<HttpContext, string>(httpContext =>
{
var remoteIp = httpContext.GetRequestIP();