kelciour / improved-quizlet-to-anki-21-importer

21 stars 7 forks source link

Improve "Sorry, it's behind a captcha. Try to disable VPN" #1

Closed kelciour closed 3 years ago

kelciour commented 4 years ago

Quizlet uses Cloudflare under-the-hood - https://www.cloudflare.com/case-studies/quizlet - and sometimes the add-on might receive the Cloudflare Captcha and could do nothing about it except to report it to the user.

This error can be triggered with Google Chrome by installing uVPN extension - https://chrome.google.com/webstore/detail/uvpn-free-and-unlimited-v/jaoafpkngncfpfggjefnekilbkcpjdgp

image

Usually this can be solved by changing IP either by disabling or installing the system-wide VPN.

It'd be better if the add-on could show the same page to the user so the user could solve it and the add-on could download flashcards.

Maybe, in addition, find a way to get and store cf_clearance cookie so it can be reused for subsequent requests if the Cloudflare Captcha is still being triggered.

https://support.cloudflare.com/hc/en-us/articles/200170136-Understanding-Cloudflare-Challenge-Passage-Captcha-

kelciour commented 4 years ago

Actually, opening the same Quizlet set with the web browser to solve the Cloudflare captcha and then copying cookies in the add-on's config should work very well and won't require any coding, or maybe not.

~If there's no captcha in the web browser, maybe the Cloudflare uses JavaScript or something else to detect bots and decide when to show the captcha. Maybe this is a new feature and Cloudflare just testing it on a small percentage of users.~

https://antoinevastel.com/javascript/2020/02/09/detecting-web-bots.html

Maybe it's something related to client SSL certificates. Maybe using Fiddler as a proxy will work - https://imgur.com/a/dWjPTTf

kelciour commented 3 years ago

Related - https://github.com/sviatoslav-lebediev/anki-quizlet-importer-extended/issues/13