chrome-php / chrome

Instrument headless chrome/chromium instances from PHP
MIT License
2.28k stars 278 forks source link

Cloudflare and Co bypass #403

Closed RestOp closed 2 years ago

RestOp commented 2 years ago

Hello,

Sorry, not found questions... So is chrome-php bypass cloudflare? For example will it pass https://nowsecure.nl/ cloud please anyone try it? Or will it pass Google Recaptcha v3 challenge?

Thanks a lot.

enricodias commented 2 years ago

This lib is just an interface to control a chrome browser. Google and others may allow a real browser to pass without any captcha challenge for a few times, especially if they have some other way of verifying the user such as being logged in a google account, but with enough requests they will eventually display captcha challenges.

RestOp commented 2 years ago

Thanks, but the problem almost of all controlled browsers is that it detected as bot. Because of it i alk could you please check is chrome-php if it will be also detected as bot or not. Just load the page https://nowsecure.nl/ and say the result. Thanks a lot.

RestOp commented 2 years ago

Or other page with cloudflare challenge...

GrahamCampbell commented 2 years ago

Likely you will be detected as a bot, eventually... because you are one. Nothing you can really do about that. A bot is a bot. ;)

RestOp commented 2 years ago

Guys, really no possible just to make one check and put here a screenshot? It is mich less time as to write here suggestions. All of you have chrome-php installed and it takes no time to check it. As for me i have to understand how it works, install it, tune and so on. Waste lot of time to find just to make this test ...

Thanks in advance if anyone could do it all the same!

GrahamCampbell commented 2 years ago

I'm sorry. Why would you expect us to do that for you?

GrahamCampbell commented 2 years ago

I'm happy to do it for you, for a fee. Get in touch at hello at gjcampbell.co.uk.

RestOp commented 2 years ago

I'm sorry. Why would you expect us to do that for you?

Just fetch this https://nowsecure.nl page/ with chrome-php (or any other with cloudflare challenge) wait 10 sec and make a screenshot. So it will be clear if chrome-php will be detected as bot or not (i hope so)

Thanks a lot. https://nowsecure.nl/

foremtehan commented 2 years ago

The site you mentioned enabled the IUAM hence the cloudflare analyze almost all of the requests even if you behind the real browser, I don't think you can bypass this mode by any library

RestOp commented 2 years ago

The site you mentioned enabled the IUAM hence the cloudflare analyze almost all of the requests even if you behind the real browser, I don't think you can bypass this mode by any library

Is is possible, but now i have found only libs on Python, that i can not use because i use PHP

foremtehan commented 2 years ago

I know what lib you are talking about, It just cannot pass this mode and stuck on the js challenge, i testes it rn: image

RestOp commented 2 years ago

I know what lib you are talking about, It just cannot pass this mode and stuck on the js challenge, i testes it rn: image

Thanks a lot!!! Have you made 10 sec delay before screenshot?

foremtehan commented 2 years ago

not working:

import undetected_chromedriver as uc
import time

driver = uc.Chrome()
time.sleep(10)
driver.get('https://nowsecure.nl')
RestOp commented 2 years ago

Interesting, on their github they say it have to work ;-(((

RestOp commented 2 years ago

not working:

import undetected_chromedriver as uc
import time

driver = uc.Chrome()
time.sleep(10)
driver.get('https://nowsecure.nl')

I think you have to make a sleep after fetching URL, then is challange takes time.

RestOp commented 2 years ago

I have just tried it work for me!

not working:

import undetected_chromedriver as uc
import time

driver = uc.Chrome()
time.sleep(10)
driver.get('https://nowsecure.nl')

I have just tried it work for me! Also some other sites with cloudflare challange!

PS As is mentioned make a sleep after page load...

GrahamCampbell commented 2 years ago

Locking as this is not productive. This is an issue tracker for the library, not a support forum. Sorry to be like this, but we can all do without the notifications.