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

Tips needed on how to successfully bypass cloudflare? #431

Closed
AdrianGarside opened this issue Nov 12, 2024 · 1 comment
Closed

Tips needed on how to successfully bypass cloudflare? #431

AdrianGarside opened this issue Nov 12, 2024 · 1 comment
Labels
bug Something isn't working needs more info This bug report is not complete

Comments

@AdrianGarside
Copy link

AdrianGarside commented Nov 12, 2024

I'm using this to attempt to get past cloudflare with my Home Assistant Bambu Labs printer integration. It authenticates as the user to retrieve printer details as part of initial setup and then it later uses those credentials to get information about in progress prints (such as the rendered image for them).

Initial switch to curl_cffi worked for about 2 days before cloudflare started detecting and blocking again. I hadn't specified a browser to impersonate so I switched to chrome. That worked for about 3 days. Switching to safari17_2_ios works again but it seems each attempt is only going to last a brief while before cloudflare adapts and starts to block again. Eventually and quickly I'll run out of browsers. Is there anything else I can try to avoid cloudflare detecting and blocking my integration?

One observation (with earlier attempts using cloudscraper instead of curl_cffi) that totally stumped me is that in some cases the authentication attempt works from the host but the exact same connection attempt from within the home assistant docker instance was being blocked. That's not yet happening with curl_cffi - it's either working from both or failing for both.

@AdrianGarside AdrianGarside added the bug Something isn't working label Nov 12, 2024
@lexiforest
Copy link
Owner

lexiforest commented Nov 20, 2024

What is the rate you were trying to authenticate?

@lexiforest lexiforest added the needs more info This bug report is not complete label Dec 2, 2024
@lexiforest lexiforest closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more info This bug report is not complete
Projects
None yet
Development

No branches or pull requests

2 participants