user234683 / youtube-local

browser-based client for watching Youtube anonymously and with greater page performance
GNU Affero General Public License v3.0
501 stars 62 forks source link

Does it even make sense to route searches through tor but not videos? #138

Closed ohnonot closed 1 year ago

ohnonot commented 2 years ago

This is really more of a discussion than an issue.

Routing everything through tor would be unbearably slow in most cases, and not nice for the tor network/community as a whole. Apart from that my question is not about low bandwidth and speed, it's about anonymity.

I imagine that youtube easily recognizes the connection if I make a search via tor and then immediately watch a video that comes up in that search. In that scenario I believe using tor is actually doing more harm than good, because I'm more or less exposing my IP as being "one of those pesky privacy freaks"?

My opinion is not made up on that topic, I invite discussion and technical detail. Prove me wrong, maybe.

user234683 commented 2 years ago

Cannot give a proper reply at the moment, just a couple notes:

ohnonot commented 2 years ago

I don't really like to use YT as such at all - and this repo is a significant step towards that - so I won't be comparing recommendations in a with/without test.

I imagine that youtube easily recognizes the connection if I make a search via tor and then immediately watch a video that comes up in that search. In that scenario I believe using tor is actually doing more harm than good, because I'm more or less exposing my IP as being "one of those pesky privacy freaks"?

TBH I'm pretty sure this assessment is correct, but your argument tells me that it might still be beneficial to do it that way.

And afaik invidious also has an option to do it that way, and I have actually written a script that also does this.

It's a compromise - because watching or downloading videos through tor would be unfair and also painful.

user234683 commented 2 years ago

Some additional comments

Routing everything through tor would be unbearably slow in most cases

Yes

and not nice for the tor network/community as a whole.

See https://github.com/user234683/youtube-local/issues/7 for a discussion about the cost of routing video through tor. The actual cost on the Tor network due to routing videos is quite small, there's an estimate in the readme seciton on tor video routing.

If your threat model is just avoiding commercial data mining by YouTube and you're concerned about not routing videos through Tor, using youtube-local via a VPN instead is a good option. Because of HTTPS, all the VPN sees is that you're connecting to youtube.com (not sensitive), and YouTube doesn't know who you are. This argument doesn't quite apply for general web browsing via a VPN generally since the domain names themselves can be sensitive, but that's a different debate.

I don't really like to use YT as such at all - and this repo is a significant step towards that - so I won't be comparing recommendations in a with/without test.

The test is pretty easy and you don't have to use youtube really. You just watch certain types of videos in youtube-local for awhile with Tor routing on that you would expect to trigger recommendations. Then you visit youtube.com (while not logged into your youtube account) at the conclusion of the experiment. If it's true that youtube looks at googlevideo.com (video file) requests and uses that for recommendations, you would expect to see recommendations based on what you watched in youtube-local.

This test wouldn't tell you whether they log video file requests and use it for other purposes or hand it over to the NSA