> For the complete documentation index, see [llms.txt](https://doc.travelhour.mrb-lab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.travelhour.mrb-lab.com/admin/3.-firebase-setup/3.2-database-security-rules.md).

# 3.2 Database Security Rules

* From the Firestore Database, Click on the **Rules** tab and copy and paste the following code below:

{% code title="Firestore Security Rules" %}

```firestore-security-rules
rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write; 
    }
  }
}
```

{% endcode %}

* Click on Publish button to publish the security rules. That's it.

{% hint style="info" %}
You should write your own security rules for the database
{% endhint %}
