IPFS PubSub Flood protection / Ignoring annoying Peers

If I have a pubsub channel and a user begins flooding the room, what’s my best protection against all of that spam? Ideally, I’d like to lock users down to something like 1 message every 1sec max (although, I’m not sure what’s to prevent someone from making a bunch of peer IDs to distribute the flood attack.)

Currently, pubsub has no authentication or flood protection, hence the “experimental” flag. It’s an MVP that’s good enough for playing around but it needs a lot of work. See:

1 Like