You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a game use the android device UUID to log into the game without any account mechanism. So the client.create method would be a vulnerable api from the server side. I try to use the npm package express-rate-limit to limit the http request rate, but I found in the source code that, when I use new Server{ server: my server} the framework will delete all the http request listeners and put /matchmaking in first place. So the rate limit function will not work.
How could I limit the http request from one IP in colyseus framework, like 5 second only allow 3 request. Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am new here.
I am creating a game use the android device UUID to log into the game without any account mechanism. So the client.create method would be a vulnerable api from the server side. I try to use the npm package
express-rate-limit
to limit the http request rate, but I found in the source code that, when I use new Server{ server: my server} the framework will delete all the http request listeners and put /matchmaking in first place. So the rate limit function will not work.How could I limit the http request from one IP in colyseus framework, like 5 second only allow 3 request. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions