我希望您已经为数据库中所有现有节点编写了规则,之后编写了以下规则以防止通过android应用或任何其他集成创建新节点
"rules": {
"Articles": {
".read": //rules that you want to write
".write": //rules that you want to write
}
"Categories": {
".read": //rules that you want to write
".write": //rules that you want to write
}
.
.
//rules for other nodes in your database
.
.
"$NewNode":{
//This rule will prevent from creating new nodes
".read": false,
".write": false
}
}
}