Created
May 29, 2013 13:36
-
-
Save frankieshakes/5670308 to your computer and use it in GitHub Desktop.
Read/Write rules to prevent a Firebase entry-point from being mistakenly (or maliciously) overwritten:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rules": { | |
".read": false, | |
"{{your-data-endpoint-root}}": { // ie: blog | |
".write": false, // prevents /blog from being overwritten | |
"{{child-endpoint}}": { // ie: entries | |
".write": false, // prevents /blog/entries from being overwritten | |
"$other": { // allows for writes to /blog/entries/{{key}} | |
".write": true | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment