I have an ASP.NET Core website & I there's a large file to download. So I want to make a limitation for unauthorized users & limit their download speed for that file to 50 kb/s.
I've checked rate limiting solutions, but they didn't do this actually. This is what I want:
if (User.Identity.IsAuthenticated)
{
// Download file with unlimited speed
}
else
{
// Download file with limited speed
}