-
Notifications
You must be signed in to change notification settings - Fork 188
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
APKMirror: Set up custom user agent to bypass Cloudflare protection #1387
Comments
Hey @archon810 would it be possible for Obtainium to use the user agent workaround? APKMirror is a track-only source so users do have to visit your page to download apps. Relevant: #44 |
Hello @ryester19 , |
The PR #1411 has been merged. It sets the user agent for GitLab only though, not for APKMirror or other sources. |
@akramer-zibra I think it would definitely make sense to extend this change to all sources. I thought you had? |
Hey @DwainZwerg , yes and no. #1411 added a That is why this issue seems to be a bit different here. As @ryester19 described above cloudflare may require a By the way: Obtainium has already a feature to configure specific HTTP request headers. But this feature is currently only implemented for UPDATE: I can't reproduce this issue, sorry. I think the point is as Imran said above: The |
Prerequisites
I did see #957 and #1097, but those are closed
Describe the feature
The APKMirror source is pretty much useless to me in its current state. I always receive the forbidden error for APKMirror links, regardless of network or VPN I'm connected to. Using curl confirms that this is because of Cloudflare protection
I downloaded APKUpdater and saw that their implementation of APKMirror checking is working just fine on the same phone. Digging deeper into their issues section, I found rumboalla/apkupdater#16, where an APKMirror developer suggested setting a custom user agent as part of their agreement. Changing the user agent to "APKUpdater-v3.0.3" in curl now allows me to retrieve the RSS feed for any app on APKMirror
Seeing as though the APKMirror devs were willing to make an exception for APKUpdater, it shouldn't be too hard to request the same treatment for Obtainium
The text was updated successfully, but these errors were encountered: