Skip to content

Workaround for cloudflare protected websites #1715

@Slasar41

Description

@Slasar41

Preparation

  • Install python. Enable "Add python.exe to PATH" from the python installation screen
  • Open the file in {FMD2 Directory}\lua\websitebypass\websitebypass_config.json and set use_webdriver to true

Method 1: FlareSolverr (64-bit only)

  • Install python package requests with pip install requests
  • Download FlareSolverr. Extract it somewhere
  • Run flaresolverr.exe and wait for it to say Serving on http://0.0.0.0:8191
  • Paste the site url into FMD2 to get the manga info and chapters
  • Check Flaresolverr if any incoming requests are made and if they are solving the challenge and getting a 200 OK response

To test if everything is working properly, run in CMD or PowerShell from your {FMD2 Directory}\lua\websitebypass directory the following command: python cloudflare.py "https://dragontea.ink" to see if any errors pop up or not

Method 2: rookiepy (Python 3.12 only)

  • Install python package rookiepy with pip install rookiepy
  • Open the site you want to get cookies for in any of the following browsers: Chrome, Edge, Firefox, Opera, Opera GX
  • Close the tab or browser to ensure the cookies are saved to file
  • Paste the site url into FMD2 to get the manga info and chapters
  • Open FMD2 log to see if errors pop up or not. You can ignore Please make sure FlareSolverr is running.
  • Alternatively check Options -> Websites -> Advanced and search for your site to see if cookies were applied correctly
  • If cookies were applied correctly but the manga info doesn't load, make sure you've recently visited the site in your browser and the cookies haven't expired

* Currently has issues decrypting cookies from Chrome and doesn't work. Use an alternative browser until the issue is fixed

To test if everything is working properly, run in CMD or PowerShell from your {FMD2 Directory}\lua\websitebypass directory the following command: python cloudflare.py "https://dragontea.ink" to see if any errors pop up or not

Manual workaround
For Chromium based browser

  • Visit website and select any manga in browser -> press F12 -> select Network tab
  • In the Name section, select the first one -> see Headers tab and search for cookie and user-agent, copy all of it
  • In FMD2, go to Options -> Websites -> Advanced -> {Website Name}, change Enabled option to True, paste the cookie and user-agent from browser

Troubleshooting
If you see the cookies disappear in FMD2, try using a VPN and try multiple different servers.
If that also doesn’t work, you’ll just have to wait for the site to lower its protection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions