Repository navigation
Fix Cloudflare 403 by updating curl_cffi - #80
Merged
Merged
Conversation
Owner
|
Seems to be working for me |
ClementJ18
added a commit
that referenced
this pull request
Nov 6, 2026
* Clear freeman cookie on unsuccessful login (#76) * Use Curl cffi impersonate browser type to bypass cloudflare captcha (#78) * ratelimit bugfixes * Fix Cloudflare 403 by updating curl_cffi (#80) * Fix Cloudflare 403 by updating curl_cffi * Fix tests due to removed content * Fix community rating parsing * version --------- Co-authored-by: Tosox <57193602+Tosox@users.noreply.github.com> Co-authored-by: AG <148010807+antglobes@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requests to ModDB are getting blocked because I believe the curl_cffi that is installed is too old. Its browser fingerprints are probably flagged by Cloudflare now. Updating curl_adapter to 1.2.3 and curl_cffi to 0.16 seems to have fixed it.
I also replaced the random browser types with a fixed Chrome fingerprint and a matching Chrome User-Agent, because I think picking a browser at random doesn't help against Cloudflare. It just means requests sometimes maybe fail depending on which browser was chosen and the random User-Agent often doesn't match the fingerprint.
This worked on all of my devices, but it would be great if you could test it on your side if you find the time.
Fixes #79