Skip to content

feat(YouTube): Bypass VPN detection and blocking #4909

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

Open
3 tasks done
abel1502 opened this issue May 4, 2025 · 3 comments
Open
3 tasks done

feat(YouTube): Bypass VPN detection and blocking #4909

abel1502 opened this issue May 4, 2025 · 3 comments
Labels
Feature request Requesting a new feature that's not implemented yet

Comments

@abel1502
Copy link

abel1502 commented May 4, 2025

Feature description

Apparently, YouTube refuses to show some videos (mostly sports-related) when it detects a VPN being active. I'm unaware of the principles behind their detection method, but if it is possible to bypass this from the client-side, I'd like to request the corresponding patch.

The current behavior is that the video player doesn't load, and is instead superimposed with the following text:

VPN/proxy detected

To continue, turn off your VPN/proxy.
This will allow YouTube to locate the
best content.

Learn more

From the support page, it seems there is also a secondary layer of protection, consisting of device location sharing when a VPN is disabled. I'm not sure if it is already bypassed in ReVanced. If not, I'd also like to request that.

If the ban is implemented as a straightforward IP blocklist, a potential bypass might involve temporarily using a different, 0-day proxy (possibly configurable) for the initial requests on a video.

I know the bypass is possible via some means, because I was able to access a blocked video via an invidious instance without disengaging the VPN.

Motivation

It is annoying to be forced to disengage the VPN for certain videos. It may also be considered a breach of privacy, if a user wishes to conceal their IP and location from the YouTube servers. Furthermore, in Russia (and possibly other countries, perhaps China), a VPN is necessary to watch YouTube since it is otherwise blocked by the government via DPI. This means users from those countries are physically unable to watch such videos.

Acknowledgements

  • I have checked all open and closed feature requests and this is not a duplicate
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
@abel1502 abel1502 added the Feature request Requesting a new feature that's not implemented yet label May 4, 2025
@LisoUseInAIKyrios
Copy link
Contributor

The blocking is done server side. Android apps cannot get the local (gps) device location unless the user approves location sharing.

The only solution is to use a better (more expensive) vpn that YouTube hasn't picked up on yet.

@abel1502
Copy link
Author

abel1502 commented May 5, 2025

@LisoUseInAIKyrios for the GPS part, I imagine the YouTube app would refuse access to those videos if it isn't given permissions to the location services. This is then definitely something that can be spoofed with a patch.

@LisoUseInAIKyrios
Copy link
Contributor

there already exists gps mock apps, and ReVanced has a hide mock location universal patch.

But I don't think YT is considering the gps location when allowed, and it's all done server side. A patch cannot fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Requesting a new feature that's not implemented yet
Projects
None yet
Development

No branches or pull requests

2 participants