-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to use proxies (HTTP(s) & socks) #301
Comments
Maybe it is also possible to proxy the youtube media through the server itself so that the users ip address is hidden to google. If this will be done, maybe also add the option to enable/disable this feature, because some hosters have traffic limit on their servers. |
I honestly thought this is what invidious does. I was a bit surprised that it still connects me directly to youtube. This should definitely be possible, at least with self-hosting. |
To be clear, the instance itself proxies requests, and then uses a proxy in another region as necessary to circumvent geo-restrictions (see #92). See my comment here for some clarification on what Invidious does. There appears to be a socks shard that should make this possible, I'll have to look more into it to ensure it can be used here. |
Running the invidious binary with |
I wish I could have replied to this earlier but our microsoft overlords decided they don't like my ISP.
If this information is correct, the best way to tunnel the requests of your local instance through tor would be to either:
|
It seems this issue has not received much attention. I would like to explore using the sox shard, previously called "socks". My main worry with implementing this is that Google generally does not like IP addresses of Tor exit nodes and will either completely block these addresses or result in an endless Captcha loop. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked. |
Is it possible to proxy requests to YouTube by connecting to tor, then connect to privoxy? Maybe using this container (https://hub.docker.com/r/dockage/tor-privoxy#!) And having the invidious container depend on this one |
Candidate libraries: socks
http
@SamantazFox I think in the lights of #3822, this issue should be our main priority to more easily bypass YouTube restrictions. |
Still a work in progress but here's HTTP proxy support through the https://github.com/syeopite/invidious/tree/http-proxy It works although InnerTube requests aren't proxied for some reason but To use just set at least the ##
## Configuration for using a HTTP proxy
##
## If unset, then no HTTP proxy will be used.
##
http_proxy:
user:
password:
host:
port: I haven't tested every edge case but it seems to be stable. |
Can we make it so it uses the Edit 2: I got it to work now. First time I can actually run my own invidious. Good work! 👍 |
Closing as #4270 was merged. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Because I don't want to clutter this issue with YAML basic issues, I'm going to lock this issue since this bug has been solved. Please continue the discussion on matrix or IRC thank you: https://matrix.to/#/#invidious:matrix.org or https://web.libera.chat/?channel=#invidious |
This could be useful for those having a self-hosted instance. The idea is about adding an option to specify a proxy server (e.g. tor socks proxy), which can be used when a server are going to make a request to YouTube to fetch the data.
The text was updated successfully, but these errors were encountered: