Preventing Abuse: Cloud Functions for Firebase

前端 未结 1 802
广开言路
广开言路 2021-02-10 22:49

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:

相关标签:
1条回答
  • 2021-02-10 23:26

    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 :)

    0 讨论(0)
提交回复
热议问题