限制Firestore中的特定类型的用户根据时间阅读文档 [英] Limit a specific type of user in Firestore to read documents based on time

查看:52
本文介绍了限制Firestore中的特定类型的用户根据时间阅读文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以使用Firestore规则来限制用户基于时间的阅读?

Has any way to limit users to read based on time, using Firestore Rules?

例如:限制经过身份验证为匿名用户的恶意用户每毫秒读取文档数次.这可能会导致此多次请求的定价升高

E.g: Limit a malicious user authenticated as an anonymous user to read a document several times per millisecond. This can cause elevate pricing for this multiples requests

推荐答案

无法使用安全规则来限制文档读取的速度.如果您认为有人在滥用您项目中的资源,请联系Firebase支持并说明您的内容在观察.

There is no way to limit the rate of document reads using security rules. If you think someone is abusing the resources in your project, contact Firebase support and explain what you're observing.

这篇关于限制Firestore中的特定类型的用户根据时间阅读文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆