How to restrict DOS attack with Web API

后端 未结 3 1566
你的背包
你的背包 2021-01-12 10:47

I am planning to develop a internet site using MVC4 and Web APi. Its a simple application which will display a customer information based on search.

For Search funct

3条回答
  •  逝去的感伤
    2021-01-12 11:27

    There's a library called WebApiThrottle that defines a ThrottlingHandler you can use to programmatically limit the number of requests per second/minute/hour... based on the IP or other attributes of the caller.

    Another option is to act at the IIS level, and of course you can use both to have a better control.

提交回复
热议问题