Jeff
Jeff

Reputation: 2500

Preventing Abuse: Cloud Functions for Firebase

What is the best way to stop an attacker from triggering a Cloud Function repeatedly, causing a huge bill or causing the project to run into quota limits?

Some ideas:

Upvotes: 7

Views: 2976

Answers (1)

johnozbay
johnozbay

Reputation: 2222

Check my answer here.

Short breakdown of items from my answer :

  1. Limit the type of requests
  2. Authenticate if you can
  3. Check for origin
  4. Use a load balancer in between
  5. Use something like Cloudflare Page Rules

Hope it helps :)

Upvotes: 1

Related Questions