I am currently experimenting using Netlify Functions and got one question:
Is there any way to make those functions resistant to spam?
You have 125k serverless function executions per site/a month using the free/pro plan without any add-ons. As far as I am concerned this is weak spot for possible attacks as someone could get the link of the function and start a flood attack on said link.
I am trying to find a way to disable the functions dynamically in case of an attack to protect me from unexpected costs due to an attack. Does Netlify offer something like this, can I work with some kind of API or is this a risk I have to take when working with serverless functions.
An alternative idea I had was using CloudFlare to detect attacks and stopping them before they even reach the Netlify Servers, but first I wanted to clarify if there is any other solution.
Thank you in advance!