X-Forwarded-For in url

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Telet
Blank Cone
Blank Cone
Posts: 38
Joined: 09 Oct 2009 23:54

X-Forwarded-For in url

Postby Telet » 24 Jan 2016 02:18

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.
Win 10 Pro
ATI Radeon HD 3200 Graphics - 8.650.0.0 13/08/2009
Last VLC

Ludrax
Big Cone-huna
Big Cone-huna
Posts: 568
Joined: 07 Jul 2010 14:28

Re: X-Forwarded-For in url

Postby Ludrax » 24 Jan 2016 12:50

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...
An' if ain't broke, then don't try to fix it...

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

Re: X-Forwarded-For in url

Postby Rémi Denis-Courmont » 24 Jan 2016 19:28

XFF is a proxy server feature. VLC is not a proxy server.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Ludrax
Big Cone-huna
Big Cone-huna
Posts: 568
Joined: 07 Jul 2010 14:28

Re: X-Forwarded-For in url

Postby Ludrax » 24 Jan 2016 21:19

...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.
An' if ain't broke, then don't try to fix it...

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

Re: X-Forwarded-For in url

Postby Rémi Denis-Courmont » 25 Jan 2016 01:11

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Telet
Blank Cone
Blank Cone
Posts: 38
Joined: 09 Oct 2009 23:54

Re: X-Forwarded-For in url

Postby Telet » 25 Jan 2016 03:38

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.
Win 10 Pro
ATI Radeon HD 3200 Graphics - 8.650.0.0 13/08/2009
Last VLC

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

Re: X-Forwarded-For in url

Postby Rémi Denis-Courmont » 25 Jan 2016 14:41

I think I answered no already.

And that would be a rather obvious security issue.
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 17 guests