codemanki / cloudscraper

--DEPRECATED -- 🛑 🛑 Node.js library to bypass cloudflare's anti-ddos page
MIT License
600 stars 139 forks source link

CloudflareError 1020, Access denied (Custom Firewall Rules) #266

Closed Aisthetic closed 4 years ago

Aisthetic commented 4 years ago

Yesterday cloudscraper stopped working on one of my machines meanwhile it is still working on my other computers. I'm using cloudscraper to post data to this url http://haapi.ankama.com/json/Ankama/v2/Api/CreateApiKey. Any idea why this module would work on a machine and not on another ?

ghost commented 4 years ago

Hi zahiid,

The reason would be TLS or an IP issue. See my comments on TLS in https://github.com/codemanki/cloudscraper/issues/264.

Jebati commented 4 years ago

Same problem on https://dev.bukkit.org/projects/pixelprinter/files

ghost commented 4 years ago

@zahiid, as you're aware, the problem can be system specific. I don't have a problem accessing either of the above URLs when using my residential connection or (Non-VPN) cloud service providers.

@Jebati See my previous comment for a potential solution.

Let us know what you've tried and whether it works sporadically, consistently, or not at all.

Thanks guys.

ghost commented 4 years ago

I'm going to go ahead and close this issue since bug reports should make use of the issue template: https://github.com/codemanki/cloudscraper/issues/new?assignees=&labels=&template=bug_report.md&title=

It avoids us having to ask the same questions over and over again. I'm not closing the discussion, just the issue.

I look forward to your responses and helping you guys resolve these issues.

Aisthetic commented 4 years ago

Well, I added the cipher string you proposed on #264 and it works fine for the moment, thanks for your help!

ghost commented 4 years ago

@zahiid That's great! I actually proposed a few different cipher strings. What is your OS/CPU info and which cipher string is working for you?

Aisthetic commented 4 years ago

My os is : image and my cpu is : image and the cipher strings i'm using are: ':!ECDHE+SHA:!AES128-SHA:!AESCCM:!DHE:!ARIA'