mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
10.74k stars 883 forks source link

[Exhentai] Cloudflare challenge is blocking gallery-dl #4342

Open a84r7a3rga76fg opened 11 months ago

a84r7a3rga76fg commented 11 months ago

Every now and then, I run into this that prevents gallery-dl from doing anything on Exhentai.

[exhentai][warning] Cloudflare challenge
[exhentai][error] HttpError: '403 Forbidden' for 'https://exhentai.org'
Hrxn commented 11 months ago

You could try setting the Cloudflare cookie inside your config, e.g.

            "cookies": {

                "cf_clearance": "<cookie value here>"

            }
a84r7a3rga76fg commented 11 months ago

@Hrxn How long will cf_clearance last for?

the-blank-x commented 6 months ago

According to https://developers.cloudflare.com/waf/tools/challenge-passage/#customize-the-challenge-passage, 30 minutes by default. It (seemingly) can be changed to any arbitrary value, but 15 to 45 minutes is recommended.