gpt4 book ai didi

firebase - 如何允许特定IP地址读写Firebase数据库?

转载 作者:行者123 更新时间:2023-12-05 03:05:26 26 4
gpt4 key购买 nike

我是 Firebase 的新手,我正在尝试允许从特定 IP 地址读取和写入数据库而无需身份验证。这可能吗?这是我的数据库规则:

{

“规则”:{

".read": "ip_address === 'xx.xx.xxx.xx'",
".write": "ip_address === 'xx.xx.xxx.xx'",

"User": {

"$uid": {
"Something" : {
".read": "auth != null"
},
"SomethingElse" : {
".read": "auth != null"
}

}

}

}}但是没有变量“ip_address”。

最佳答案

没有基于 IP 地址限制访问的安全规则。你想做的事是不可能的。

关于firebase - 如何允许特定IP地址读写Firebase数据库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51002416/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com