1

How can I limit number of reads/writes from one IP in firestore?

P.S. I don't have any authentication in my app

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Vladimir
  • 31
  • 3

1 Answers1

1

Limiting any sort of access by IP address is not possible with Cloud Firestore. Instead, you should consider actually using some authentication, force requests through a backend you control, and perform per-user auditing from there.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
  • Ok, thank you! But if I will use a Firebase Authentication, can I set some limits per user with firebase tools? – Vladimir Oct 31 '19 at 17:34
  • No, you will still have to manually record and check all those accesses. There is nothing that will record or tally direct access from web and mobile SDKs. – Doug Stevenson Oct 31 '19 at 17:38