Basic Firebase Security Rules for Sketchware Apps
Welcome to our special page which is very important to increase security of your firebase apps, it will help to minimize threats on your server. It is recommended to learn firebase very well i.e. how to handle huge data in more efficient way before security rules.
Firebase Real-time Database:
1. No Security:
{
"rules": {
".read": true,
".write": true
}
}
}2. Close server (No access):
{
"rules": {
".read": false,
".write": false
}
}
3. Only Authenticated Users can read & write the data:
{
"rules": {
".read": "auth != null",
".write": "auth != null"
}
}
4. Only user can read & write his own data:
{
"rules": {
"posts": {
"$uid": {
".read": "$uid === auth.uid",
".write": "$uid === auth.uid"
}
}
}
}
5. Only Admins can read & write the data:
{
"rules":{
"announcements":{
".read": true,
".write": "root.child('badges/admin/' + auth.uid).exists()"
}
}
}
6. Only Particular User can write:
{
"rules":{
".read": true,
".write": "auth.uid == 'pasteYourUID' "
}
}
7. Only Users having verified emails can write:
{
"rules":{
".read": true,
".write": "auth.token.email_verified === true"
}
FIREBASE STORAGE RULES WILL BE ADDED LATER AFTER TESTING IT
If you have more rules idea, please comment on the post, it will help lot of users.
Sources:
- Realtime Database: https://firebase.google.com/docs/database/android/start
- Firebase Storage: https://firebase.google.com/docs/storage/android/start
- Other: https://gist.github.com/codediodeio/6dbce1305b9556c2136492522e2100f6
how do I encrypt all my firebase
ReplyDeleteThere are lot of Moreblocks available in Sketchware. It is recommended to encrypt your data with random password.
DeleteThis Encryption method might helped you : https://en.wikipedia.org/wiki/Public-key_cryptography
DeleteI do not understand
ReplyDeletePlease you can't understand properly without testing them.
DeleteSorry, I understood from the beginning, only some were not very clear.
DeleteLogin
ReplyDeleteMy sketchup pro Mein login nahin kar pa raha hun
ReplyDeleteWhat is Sketchub Pro? Please try original apk from https://sketchub.in/
DeleteBest rules for database,thanks to publisher
ReplyDeleteInteresting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks Serious Security CCTV Sydney
ReplyDeleteWow, cool post. I'd like to write like this too - taking time and real hard work to make a great article... but I put things off too much and never seem to get started. Thanks though. ajp150
ReplyDeleteI think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. YMusic APK
ReplyDeletePretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. Mod Apk Download
ReplyDelete