Security Rule for Data

Learn how to structure and write security rules on Firestore documents and collections.

Introduction

Security rules in Firestore are used to define the permissions and access control for reading and writing data in our database. They ensure that only authorized users can perform specific operations on our Firestore collections and documents. Server-side Firestore security rules are written using a declarative language called the Firebase Security Rules Language (FSR). These rules are evaluated on the server side, meaning they’re enforced by Firestore’s servers and can’t be bypassed or modified by client-side code.

Get hands-on with 1200+ tech skills courses.