How to restrict Firebase data modification?

Firebase provides database back-end so that developers can focus on the client side code. So if someone takes my firebase uri (for example, https://firebaseinstance.firebaseio.com) then develop on...