I'm using AspNetCoreRateLimit Nuget package. Currently it's working nice, something like below:
"IpRateLimiting": {
"EnableEndpointRateLimiting": true,
"StackBlockedRequests": false,
"RealIpHeader": "X-Real-IP",
"ClientIdHeader": "X-ClientId",
"HttpStatusCode": 429,
"QuotaExceededResponse": {
"Content": "Too many attempts ",
"ContentType": "application/json"
},
"GeneralRules": [
{
"Endpoint": "*:/register",
"Period": "1h",
"Limit": 15
},
. . .
I need to know if it is possible to use rate limit, for internal action methods, In fact I have an action method like this :
public async Task<IActionResult> sendSMS(string mobileNumber)
{
// continued
}
It is not called from client side and always is redirectedTo and is called from other action methods. I need to set a rate Limit on it if it is possible