Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Everyone knows, I imagine, that BBC does geo-ip filtering, and it's pretty good. youtube-dl has these options
Code:
Geo Restriction:
--geo-verification-proxy URL Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by
--proxy (or none, if the option is not present) is used for the actual downloading.
--geo-bypass Bypass geographic restriction via faking X-Forwarded-For HTTP header
--no-geo-bypass Do not bypass geographic restriction via faking X-Forwarded-For HTTP header
--geo-bypass-country CODE Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code
--geo-bypass-ip-block IP_BLOCK Force bypass geographic restriction with explicitly provided IP block in CIDR notation
Youtube-dl_Supported-sites.html lists
Code:
* bangumi.bilibili.com: BiliBiliM-*M-'
* bbc: BBC
* bbc.co.uk: BBC iPlayer
* bbc.co.uk:article: BBC articles
* bbc.co.uk:iplayer:playlist
* bbc.co.uk:playlist
* BBVTV
Has anyone tried it? with any success?
Last edited by business_kid; 08-10-2020 at 12:07 PM.
I haven't done anything like this in a long time, but I think I had really good success with using tor and then using proxychains to route youtube-dl through it.
I think it was rather easy to set up too, proxychains, that is.
I'm on Slackware, the supplementary "SBo" repo has a buildscript for that.
So, if your "user description" still reflects things accurately, then you can find it there.
Anyway, it works with TOR, for which there's also a slackbuild.
However, it seems that YT now refuses TOR connections, but proxychains works with any other proxy, too.
It's configuration file (on Slackware at: /etc/proxychains.conf ) is well documented and it should be easy enough to add your proxy there.
Then all that's left is to run youtube-dl with it at the front.
On Slackware, the binary is called proxychains4
Code:
proxychains4 youtube-dl [OPTIONS] URL
You can put proxychains before all sorts of internet things and they should get routed through the proxy.
Anyway, I would have gone more in depth yesterday but I was running on approximately 4 hours of sleep over almost 3 days of hot hot hot weather.
So...yeah :P
My "Guru" rating was earned by asking enough questions probably, not by answering them. I keep meaning to demote myself - it sounds atm like I know something.
Tor doesn't work on fooling the BBC geo-ip. I'm not bothered with vpns yet. I might.I don't even know if they work.
Last edited by business_kid; 08-12-2020 at 09:01 AM.
My "Guru" rating was earned by asking enough questions probably, not by answering them. I keep meaning to demote myself - it sounds atm like I know something.
Meant as a joke I'm sure, this sometimes creates real problems/misunderstandings with posters from India.
Joke or not, I find it over-bearing and changed it to LQ Addict immediately. Way more appropriate, since it's defined by number of posts.
Sorry for the OT, back to business (pun? intended?).
Could you give me a GEO-blocked example link to test this? Preferably UK only, I guess?
Whatever magic youtube-dl seems to be capable of employing there, it cannot change the IP address that actually requests a download.
So either it works through some VPN (TOR unlikely, most exit nodes seem to be blocked by those "security" blocklists Google provides freely to anyone who's stupid enough to accept their reign of terror with open arms; btw LQ also uses them) or it doesn't.
Haven't tried youtube-dl but the beeb recognises my VPN (PIA) even when I use a British or European end-point. Maybe they just know the IPs, or maybe they got smarter 'cause it used to work. Never worried me too much as it's usually just the soccer I'm after, and I can wait till SBS offers it here.
I was going to give you http://www.bbc.co.uk/iplayer or www.channel4.com, which always block, but I got into both of them today. Perhaps it's the fixed IP I now have?
Personally, I don't want the modern stuff, action packed thrillers leaving you with PTSD, or the sex/intrigue/more sex/violence/spiritism/more violence that seems so popular. BBC & channel 4 are good on documentaries, some comedies, sports & entertainment. Also, BBC has no ads; They're inclined to make a 30 minute show last 60 minutes on some channels.
I told you their geo-ip stuff was good. If you do a 'whois' scan on some random ip, one of the things it returns is a country. My IP is in the 92.51.x.x category which was originally given somewhere, but they sold the range to Ireland among others. BBC has me located in Ireland.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.