Protect firebase function against request flooding (rate limiting)

I have a HTTPS Firebase function (in the form of https://europe-west1-testapp-test01.cloudfunctions.net/testFunction) which has to be publicly accessible to anyone. From what I’ve read, these functions are not protected against abuse, so I guess someone could continuously send requests to the function, causing some big costs.
Can I use some Cloudflare product to proxy the traffic through Cloudflare, thus implementing some degree of protection? I’ve got a domain (let’s call it mydomain) which I hope can help me with this. I’m thinking of something like this:
User accesses subdomain.mydomain.com/testFunction → The traffic is proxied to my function’s endpoint by Cloudflare, without exposing the firebase function url to the user. Could you give some insight into where to start?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.