:http-referrer is not propagated to chunk requests in HLS streaming

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
AndRAM
New Cone
New Cone
Posts: 2
Joined: 29 Mar 2020 16:43

:http-referrer is not propagated to chunk requests in HLS streaming

Postby AndRAM » 29 Mar 2020 16:59

This is VLC 3.0.8

Some streams are referrer locked so you add :http-referrer option.
Referrer header is added to requests for the master playlist and for chunklists.
Unfortunately it's not set on requests for the actual chunks, so I'm getting 403 when downloading stream's aac fragments.

Reproduce by:

URL:
https://liveingesta118.cdnmedia.tv/laxlive/smil:live.smil/playlist.m3u8

Options:
:network-caching=1000
:http-referrer=https://www.laxmasmusica.com/

Messages:
adaptive error: Failed reading https://liveingesta118.cdnmedia.tv:443/laxlive/smil:live.smil/media-umvtjsnq8_b48000_2255.aac: HTTP/1.1 403 Forbidden
adaptive error: Failed to create demuxer 00000000 Unknown
adaptive error: Failed reading https://liveingesta118.cdnmedia.tv:443/laxlive/smil:live.smil/media-umvtjsnq8_b48000_2256.aac: HTTP/1.1 403 Forbidden

Of course you don't even get to get playlist.m3u8 nor chunklist_b48000.m3u8 when :http-referrer=https://www.laxmasmusica.com/ is not used.

Thanks in advance!

AndRAM
New Cone
New Cone
Posts: 2
Joined: 29 Mar 2020 16:43

Re: :http-referrer is not propagated to chunk requests in HLS streaming

Postby AndRAM » 20 Apr 2020 16:19

So maybe this was not posted to the right forum?
Any suggestion for a better avenue for this fix request?

TIA

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: :http-referrer is not propagated to chunk requests in HLS streaming

Postby InTheWings » 23 Apr 2020 11:46

try 4.0 Nightly Build of VLC from tomorrow
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: :http-referrer is not propagated to chunk requests in HLS streaming

Postby InTheWings » 23 Apr 2020 11:46

or use --adaptive-use-access
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

Rémi Denis-Courmont
Developer
Developer
Posts: 15320
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: :http-referrer is not propagated to chunk requests in HLS streaming

Postby Rémi Denis-Courmont » 23 Apr 2020 16:28

I suppose that Javascript implementations of HLS leave the web page as the referrer. But logically, as well as to avoid manual user input, VLC ought to put the manifest URL as the referrer for segments by default, IMO.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests