How to bypass cloudflare with python requests?

palanore1

Registered Member
Joined
Feb 12, 2024
Messages
71
Reaction score
25
Hello, I want to make a login request to an API and I keep getting blocked by CF. Is there a way to bypass this? I know its something with the cookies but I am not sure what...
 
UPDATE: filed with this message:

Body: b'{"status":"Failed to get successful response from website. Please retry the request."}'
 
Personally I have used botasaurus all in one framework and their antidetectrequsts to pass it
 
Hello, I want to make a login request to an API and I keep getting blocked by CF. Is there a way to bypass this? I know its something with the cookies but I am not sure what...
not only cookies if WAF has strict policies. I’d just try to use a real browser under Python’s control (selenium or whatever)
 
Hello, I want to make a login request to an API and I keep getting blocked by CF. Is there a way to bypass this? I know its something with the cookies but I am not sure what...
try using "undetected-chromedriver" package, it prevent your browser from being detected as an automation browser
 
not only cookies if WAF has strict policies. I’d just try to use a real browser under Python’s control (selenium or whatever)
try using "undetected-chromedriver" package, it prevent your browser from being detected as an automation browser
thanks for the advide, managed to do it with automated browsers. Now I want to skip the browser and only do it trough API requests. thats why I have those issues
 
thanks for the advide, managed to do it with automated browsers. Now I want to skip the browser and only do it trough API requests. thats why I have those issues
The curl-impersonate software might be of use
 
My Recommendation Is For an Undetected chrome driver, It`s Not Detected As An Automation Browser. You Should Try This.
 
many captcha services implemented CF turnstile since a good while already,
the prices are usually too cheap (depending on your ROI tho), and there are already a ready python implementation examples,

here's the 2captcha page about it for example:
https://2captcha.com/p/cloudflare-turnstile
 
I feel like I need to clarify this: I dont want to use any kind of chromedriver or automated browser. I want straight up API calls.

Thanks for all the replies trying to help <3
 
Back
Top