0

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
}
  • 1
    This should explain https://www.codeproject.com/Articles/18243/Bandwidth-throttling – Zee Jan 05 '23 at 19:49
  • Have your tried to limit your bandwidth usage? You can refer to this [issue](https://stackoverflow.com/questions/847422/how-to-programmatically-limit-bandwidth-usage-of-my-c-sharp-application). – Xinran Shen Jan 06 '23 at 02:51

0 Answers0