Page 1 of 1
X-Forwarded-For in url
Posted: 24 Jan 2016 02:18
by Telet
VLC support X-Forwarded-For in url?
The X-Forwarded-For (XFF) HTTP header field is a de facto standard for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer.
for example i have link as:
https://url-lh.akamaihd.net/i/url@99999 ... 9.99.99.99
but it not work.
Re: X-Forwarded-For in url
Posted: 24 Jan 2016 12:50
by Ludrax
for example i have link as:
Code: Select all
https://dasVLC_live-lh.akamaihd.net/i/dasVLC@90210/master.m3u8|X-Forwarded-For=99.99.99.99
but it not work.
just quoteed because important
(%7C?) vertical bar was not visible...
Re: X-Forwarded-For in url
Posted: 24 Jan 2016 19:28
by Rémi Denis-Courmont
XFF is a proxy server feature. VLC is not a proxy server.
Re: X-Forwarded-For in url
Posted: 24 Jan 2016 21:19
by Ludrax
...nor is this
Code: Select all
ffmpeg.exe -y -headers "X-Forwarded-For: 123.45.67.89!CR!!LF!" -user_agent "Mozilla/5.0"
Privoxy
Deletes the "X-Forwarded-For:" HTTP header from the client request, or adds a new one.
Re: X-Forwarded-For in url
Posted: 25 Jan 2016 01:11
by Rémi Denis-Courmont
You can't inject arbitrary HTTP headers. That would change the protocol semantics in ways that cannot be anticipated by the state machine of the VLC HTTP stack.
Not that adding XFF would make any sense anyhow - that header is meant for reverse proxies.
Customizing the user agent has been possible for many years.
Re: X-Forwarded-For in url
Posted: 25 Jan 2016 03:38
by Telet
Do you can add feature to windows as other Android player (Kodi, MX Player, xmtvPlayer):
Raw HTTP header can be entered next to URL after a pipe (|) character.
Re: X-Forwarded-For in url
Posted: 25 Jan 2016 14:41
by Rémi Denis-Courmont
I think I answered no already.
And that would be a rather obvious security issue.