fix(chat): add ip-based rate limiting to prevent session rotation abuse (#1436)
This commit is contained in:
parent
211cb96a96
commit
ad47aa0ee0
7 changed files with 87 additions and 5 deletions
|
|
@ -9,14 +9,14 @@ export const entitlementsByUserType: Record<UserType, Entitlements> = {
|
|||
* For users without an account
|
||||
*/
|
||||
guest: {
|
||||
maxMessagesPerDay: 20,
|
||||
maxMessagesPerDay: 10,
|
||||
},
|
||||
|
||||
/*
|
||||
* For users with an account
|
||||
*/
|
||||
regular: {
|
||||
maxMessagesPerDay: 50,
|
||||
maxMessagesPerDay: 10,
|
||||
},
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue