Simple question for whitelisting IP

Im using the engine on my own server,
So is it possible to restrict access to a live stream based on the IP’s Im storing on the fly inside a mysql database?
Thanks

For HLS and MPEG-DASH - assumed that clients connect directly to your Wowza Server (thus not via a CDN or proxy; and your Wowza Application is NOT in HTTP Origin mode), you can develop a custom module that overrides the onHTTPSessionCreate in ModuleBase. You can check the clients IP address and block access or cancel the session. Remember that this doesn’t keep the client from trying again.

For RTMP you can implement the IMediaStreamActionNotify, check the client IP in your DB and force-shutdown the client if there’s no match.

Thank you Karel for your answer.
Do both of the solutions work if there are more than one viewers?

As I wrote: assumed that clients connect directly to your Wowza Server (thus not via a CDN or proxy; and your Wowza Application is NOT in HTTP Origin mode)

onHTTPSessionCreate (HLS/MPEG-DASH) and IMediaStreamActionNotify.onPlay (RTMP) are called once when the viewer connects to the stream.

Thank you very much for your complete answers!
And what about WebRTC? What could be done in that case?

WebRTC uses RTP; out of my head: you should be able to use the IMediaStreamActionNotify.onPlay and check if there’s a RTP session and check if the RTP session is a WebRTC session.