Skip to content
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

API access does not work via tor (cloudflare block) #49

Closed
micressor opened this issue Mar 15, 2021 · 9 comments
Closed

API access does not work via tor (cloudflare block) #49

micressor opened this issue Mar 15, 2021 · 9 comments

Comments

@micressor
Copy link

I cannot access to the API via tor request:
torify curl -H "Accept: application/json; indent=4" https://bitnodes.io/api/v1/nodes/x.y.z.x-8333
cloudflare blocks the request.

@ayeowch
Copy link
Owner

ayeowch commented Mar 15, 2021

I've updated the Cloudflare config to allow tor. Note that Cloudflare may not immediately recognize certain IP as tor exit node, so your access could still be blocked.

@ayeowch ayeowch closed this as completed Mar 15, 2021
@micressor
Copy link
Author

Just tested, it still does not work to acccess api via torify command.

@nyxnor
Copy link

nyxnor commented Apr 4, 2021

@micressor Yes, still not working here either.
@ayeowch If setting Protection to Off does not work, could you consider enabling Onion Routing to test?

Toggle Onion Routing On or Off via the Cloudflare Network app.

@ayeowch
Copy link
Owner

ayeowch commented Apr 4, 2021

@micressor @nyxnor The "Onion Routing" was on previously. I have just turned it off. Can you retest your torify command?

@nyxnor
Copy link

nyxnor commented Apr 5, 2021

@ayeowch Thank you for the response.
If you enable onion routing for a day, I could try to torsocks curl from that onion address to test.
The command is right because without torsocks it works.
Tested now with torsocks:

<!DOCTYPE html>
...
<title>Please Wait... | Cloudflare</title>

<meta name="captcha-bypass" id="captcha-bypass" />
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />
<!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,p$
<style type="text/css">body{margin:0;padding:0}</style>
...

@micressor
Copy link
Author

@ayeowch It is still not fixed. please re-open this issue.

Tried with the following command:

torify curl -H "Accept: application/json; indent=4" https://bitnodes.io/api/v1/nodes/torv3.onion-8333/ | lynx -stdin

Output:

Please complete the security check to access bitnodes.io

   Please stand by, while we are checking your browser...

   Redirecting...

Please turn JavaScript on and reload the page.

   Please enable Cookies and reload the page.

Why do I have to complete a CAPTCHA?

   Completing the CAPTCHA proves you are a human and gives you temporary access to the web
   property.

What can I do to prevent this in the future?

   If you are on a personal connection, like at home, you can run an anti-virus scan on your device
   to make sure it is not infected with malware.

   If you are at an office or shared network, you can ask the network administrator to run a scan
   across the network looking for misconfigured or infected devices.

@ayeowch
Copy link
Owner

ayeowch commented May 5, 2021

@micressor I have temporarily turned off the challenge. Can you help retest?

@nyxnor
Copy link

nyxnor commented May 5, 2021

@ayeowch Tested now, did work after your changes.

@micressor
Copy link
Author

@ayeowch Now it works, perfect.

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

No branches or pull requests

3 participants