Prevent Stream Hot Linking

About encoding, codec settings, muxers and filter usage
NOYB
Blank Cone
Blank Cone
Posts: 25
Joined: 11 Feb 2019 05:29

Prevent Stream Hot Linking

Postby NOYB » 07 Jul 2023 10:38

Suppose a vlc stream that loads in a web page as an audio source. Can hot-linking the vlc stream be prevented?

bash script starts vlc stream relay:

Code: Select all

cvlc --no-dbus --network-caching=3000 \ $domain_protocol://$domain_name:$domain_port/$stream_name \ --input-title-format '$t'$stream_title' $/ $b'$stream_album' $/ $a'$stream_artist \ --sout '#standard{access='$dst_protocol',mux='$stream_type',dst='$dst_server':'$dst_port'/'$stream_name'}' \ :sout-all :sout-keep \ --http-cert '/etc/pki/SSL.Certificate.pem' \ --http-key '/etc/pki/SSL.PrivateKey.pem' \ &
html:

Code: Select all

<audio controls autoplay> <source src="https://domain.com:8888/VLC_Stream" type="audio/mpeg"> </audio>

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 18 guests