Limit number of opened sessions per IP

djuka

Member
Hi,

Is there a way to limit the number of opened sessions or websocket channels per IP address on the Flashphoner server?
I often have one streaming active but 40-60 websocket channels opened.
 

Max

Administrator
Staff member
Hello

WCS server sends REST request http://localhost:8081/EchoApp/connect upon each websocket connection attempt
This REST request contains IP of user who is trying to establish the websocket connection.

1. You can configure your own REST URL , i .e. http://myhost/myapp
2. You can handle such REST request http://myhost/myapp/connect and reply with 403 Forbidden if IP address is denied.

This can be done using REST hooks

See also example of authorization by domain name
 
Top