In order to secure access to the stream a security token can be added to the player config. The token must be provided by a server-side code (PHP, ASP.NET etc.). It also must be configured on server side.
security: {
type: "token",
token: "3f7af6d8a2df9307902f62ff16f1678466",
}