Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

CloudFlare Blocking Requests To APKMirror #728

Open
Natanel-Shitrit opened this issue Apr 29, 2023 · 5 comments
Open

CloudFlare Blocking Requests To APKMirror #728

Natanel-Shitrit opened this issue Apr 29, 2023 · 5 comments

Comments

@Natanel-Shitrit
Copy link

Natanel-Shitrit commented Apr 29, 2023

Describe the bug
APKMirror REST API is no longer accepting API requests from unauthenticated users ☹
APKMirror is behind CloudFlare, which results with bot challenges, often blocking requests to this endpoint which is used to get application files.

To Reproduce
Steps to reproduce the behavior:

  1. Click "Start Patching".
  2. Wait for dependencies to download.
  3. Click "Continue".
  4. You will be presented with the error:

Screenshots
image


image

Not relevant anymore since I didn't try it with authorization key.

revanced-builder Version: Latest (v3.9.1)

Desktop (please complete the following information):

  • OS: Oracle Linux
  • Version: 8

Additional context
Probably unrelated but worth mentioning, machine running on ARM64, I've adjusted the Dockerfile and got it working with ARM64. (It is unrelated, but I will open a PR for the ARM support)

I've suggested a workaround for this issue, in the issue comments:

A workaround for now, for docker compose: https:/Natanel-Shitrit/revanced-builder/blob/main/docker-compose.yml

For non-docker users, add the IP addresses to your hosts file, this will send the request directly to the website without needing to pass any CF challenges.

@Natanel-Shitrit
Copy link
Author

@Natanel-Shitrit
Copy link
Author

Okay, seems like it's working fine on Windows, closing.

@Natanel-Shitrit
Copy link
Author

After a bit of debugging... this is a CloudFlare challange :(

root@583e6f02e9bd:/app/revanced-builder# node .
[builder] Listening at port 8000
[builder] The webserver is now running!
[builder] Opening the app in the default browser... Done, check if a browser window has opened
<!DOCTYPE html>
<html lang="en-US">
<head>
    <title>Just a moment...</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="robots" content="noindex,nofollow">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <link href="/cdn-cgi/styles/challenges.css" rel="stylesheet">

Is there anything to do about this?

@Natanel-Shitrit
Copy link
Author

A workaround for now, for docker compose:
https:/Natanel-Shitrit/revanced-builder/blob/main/docker-compose.yml

For non-docker users, add the IP addresses to your hosts file, this will send the request directly to the website without needing to pass any CF challenges.

@Natanel-Shitrit Natanel-Shitrit changed the title App Selection Error CloudFlare Blocking Requests To APKMirror Apr 29, 2023
@Natanel-Shitrit
Copy link
Author

Note: While fixing the initial problem, seems like there is another problem with downloading APKs, will check it tomorrow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant