2

Currently building a simple chat app where everyone can actually login and have a chat with anyone. How to prevent someone from creating a for loop that sends message infinitely or many times?

johndavedecano
  • 522
  • 5
  • 11
  • how to prevent spam you ask. It's probably beyond the scope of firebase. Perhaps you could setup a security rule preventing saving a message if the previous x messages are from the same user. – webduvet Oct 07 '14 at 10:28
  • possible duplicate of [Firebase rate limiting in security rules?](http://stackoverflow.com/questions/24830079/firebase-rate-limiting-in-security-rules) – Kato Oct 08 '14 at 22:42

1 Answers1

3

If you're looking for rate-limiting with Firebase, check out https://stackoverflow.com/a/24841859/879295 for a comprehensive answer by @kato.

Community
  • 1
  • 1
Rob DiMarco
  • 13,226
  • 1
  • 43
  • 55