Preventing Firebase deletions -


i've written small single page javascript application (for internal company use) hosted on s3 , uses firebase datastore.

i'm aware devious hacker find way delete data in firebase if determined enough using javascript console.

none of data in application should ever deleted.

what firebase rules can use ensure data cannot deleted authorised user? possible?

thanks

yup, that's simple:

".write": "!data.exists() || newdata.exists()" 

so can write if there's either no data @ location or if you're writing new data.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -