Conversation

β–‘β–’β–“β–ˆ π•˜οΌ²Ξ±α―π•€Ρ‚π€Ρ• β–ˆβ–“β–’β–‘

Edited 1 month ago

I’m not actually sure if this works but If anyone else wants to try it out and give me feedback feel free.

#Adblock #Tor

Using Tor to Avoid Ads on YouTube

Configure Tor to use only exit nodes from countries with few or no YouTube ads.


WARNING: Do not try this unless you understand the implications it has for your system wide tor setup. TorBrowser does way more than merely proxy Traffic through Tor, but also prevent #InformationLeakage and block tracking code. This is not a substitute for using the TorBrowser and does not improve your anonymity.


Tor Configuration

Edit /etc/tor/torrc:

ExitNodes {AL},{MD},{GE},{AM}{VN}
StrictNodes 1

Then restart Tor:

sudo systemctl restart tor

FoxyProxy Setup

1. Add a new proxy:

FieldValue
Host127.0.0.1
Port9050
TypeSOCKS5

2. Set proxy mode to: Proxy by Patterns

3. Add URL patterns and assign them to the proxy above:

PatternPurpose
*youtube.com/*Main site
*youtu.be/*Short links
*ytimg.com/*Thumbnails and assets
*googlevideo.com/*Video stream data

ytimg.com and googlevideo.com are required – without them thumbnails and video playback will fail through the proxy.


Notes

  • StrictNodes 1 forces Tor to only use the listed countries – it will stall rather than fall back
  • Ukraine and Romania will handle most traffic; Albania has decent exit node coverage
  • If buffering is bad, try capping YouTube quality at 480p
3
3
3

β–‘β–’β–“β–ˆ π•˜οΌ²Ξ±α―π•€Ρ‚π€Ρ• β–ˆβ–“β–’β–‘

So Far so good, I have run into the occasional β€œnot available in your country”, but not a single ad so far.

1
1
1

@gravitas Does running it through tor make it slow and lower quality? I have not used tor in ages, and it use to be painfully slow.

2
1
0

@gravitas I'd disrecommend manual @torproject / .configuration unless you know EXACTLY what you do.

  • does way more than merely proxy Traffic through Tor, but also prevent and block tracking code.
    • You do run the risk of subverting your anonymization efforts to a degree that way!

So I do disrecommend doing this, and instead use if not , then at least @Waterfox / with and if not in incognito mode...

1
0
0

@Fratm @gravitas obviously it will slow it down and it's disrecommended for that...

But outside of streaming Video, is decebtly fast.

0
0
0

β–‘β–’β–“β–ˆ π•˜οΌ²Ξ±α―π•€Ρ‚π€Ρ• β–ˆβ–“β–’β–‘

@kkarhan @torproject @Waterfox Yes, Fair enough to say this is just not recommended in general, Its something i’m doing to test a specific use case and its easier then manually finding proxies for the given countries.

But here’s an interesting fact: #TorBrowser doesn’t use the same tor connection as the one that uses the systemwide /etc/tor/torrc . So while I’ll again stress this is not recommended unless you know what you’re doing, it won’t actually affect the standard Tor browser. (or at least this is the case when i test on my system, could differ on windows,mac, etc)

It’s not that slow but even if it was I’d use dial up before i put up with ads.

1
1
1

@gravitas yeah.

I just wanted to put this out so that "" don't think this is a valid substitute for @torproject / …

1
0
1

β–‘β–’β–“β–ˆ π•˜οΌ²Ξ±α―π•€Ρ‚π€Ρ• β–ˆβ–“β–’β–‘

@Fratm So far my experience the worst its got was buffering for a second or 2 at the start which i’ll take over an ad anyday. 1080p video streams fine one it gets started. Its always possible to get a slower exit node for one reason or another, but in general speeds on tor are normally fine for streaming video.

…which reminds me I neet to setup an onion address for my peertube instance.

0
0
1

β–‘β–’β–“β–ˆ π•˜οΌ²Ξ±α―π•€Ρ‚π€Ρ• β–ˆβ–“β–’β–‘

@kkarhan Yeah good call, I’ve amended the original post with a warning.

1
0
1

@gravitas foxyproxy with tor is bussinnn the container tabs option with it is peak if ur on Firefox/librewolf

0
0
0