Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Defaul Referer #1854
Defaul Referer #1854
Comments
|
Do you really mean an HTTP referer header in the download request? I see little use for that, why would you want one? Note that you can embed the extractor in the filename, simply add an output template with
|
|
I'm closing this issue now since I'm fairly certain that you wanted |
|
Some sites are defensive if the the referrer is not within the site. So it may be helpful if YTDL mimics a user clicking URLs trough a browser to navigate the site so that some protection mechanism is not triggered. Items to mimic:
|
|
Sorry, it looks like I completely misunderstood your request. We are already sending the referer, user-agent and cookies headers, since one of the very first versions of youtube-dl. If there is a specific problem, feel free to report it. |
|
I'd very much like a CLI argument to explictly set the HTTP referer. Vimeo, for example, has a setting where uploaders can say that a video is only accessible through an embed from a specific domain. They check that by looking at the referer; I often run into problems there because I have referer disabled by default through the Firefox extension RefControl. |
|
And if you want an example, this video here is where I ran into it just now. |
|
@DrMcCoy Have you tried the --referer option? If that doesn't work, open a new issue. |
|
Oh, you're right, this is exactly what I asked for. And it works, too. My bad! :) Seems like my system's manpage for youtube-dl is outdated, and so the option wasn't listed there when I checked. |
Is it possible to add a default referer which is the site name. If using you tube it will be youtube.com. If vimeo it will be vimeo.com