Skip to content

Cloudflare

HDoujinDownloader edited this page Nov 30, 2023 · 24 revisions

Some websites use Cloudflare's anti-bot features (IUAM) to protect themselves against bots and DDoS attacks. This mode can also interfere with HDoujin Downloader, but there are some workarounds available.

Cloudflare issues challenges that are meant to be solved by a web browser in order to prove that it's not a bot. HDoujin Downloader has several solvers that attempt to generate solutions to these challenges, but when it fails to generate a valid solution, you may see one of the following error messages.

ℹ️ The most reliable challenge solver is FlareSolverr. See the instructions here to download and enable the plugin.

Cloudflare-related error messages

Cloudflare (IUAM)

An anti-bot challenge was detected, but it couldn't be solved. This can usually be resolved by downloading and enabling the FlareSolverr plugin.

If you continue getting the same error message, you may be getting a CAPTCHA challenge. See the instructions below for information on CAPTCHA challenges.

Cloudflare (Captcha)

A CAPTCHA challenge was detected, which cannot be solved automatically. The presence of this challenge indicates that your IP address may haven been flagged by Cloudflare. This is not an IP ban, but you will need to solve a CAPTCHA in order to access the website.

If you use a VPN or proxy, you can try changing your IP address and seeing if the request is still blocked. See VPNs and Proxies for more information.

You can also solve the captcha in your web browser and copy your Cloudflare cookies into HDoujin Downloader. See Bypassing Cloudflare manually for more information.

Bypassing Cloudflare automatically

HDoujin Downloader can bypass Cloudflare challenges automatically using the FlareSolverr plugin, which is included by default.

If the FlareSolverr plugin is missing or outdated, see the instructions here to download and enable the plugin.

Bypassing Cloudflare manually

If HDoujin Downloader is unable to bypass the Cloudflare challenge automatically, you can solve the challenge in your web browser and copy the solution details to HDoujin Downloader. You need to copy the user agent of your web browser, as well as the cf_clearance cookie.

  1. Open the website in your web browser, and wait for Cloudflare to finish.
Show screenshot
  1. Press F12 to open Developer Tools, and refresh the page.
  2. Go to the Network tab, click the first request in the list, and scroll to the Request Headers section. Find the value of the cf_clearance cookie and the user agent of the web browser.
Show screenshot
  1. Copy the user agent string and clearance cookie into HDoujin Downloader.
Show screenshot

After that, you will be able to download from the site normally. You may need to repeat this process when the clearance cookie expires.