Search code examples
firebasegoogle-cloud-platformfirebase-storagefirebase-security

What should I do to protect my uploaded firebase document


How can I protect my uploaded document in Firebase?

For Example, this is my uploaded document URL:- https://firebasestorage.googleapis.com/v0/b/sapient-logic-368311.appspot.com/o/coder.JPEG?alt=media&token=55d1a727-956f-434b-bdad-a08b8ef133d0

Anyone can able to access and see my uploaded document by using this document URL.

How can I protect the uploaded document, then only authorized persons can access the uploaded document.

I want If anyone get document URL although Can't be access or see document

I want like this If anyone try to access my document using document URL:- enter image description here

Or Can I make private bucket in Firebase ?


Solution

  • You can write rules in it which help you who can read or write the data.