New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Puppeteer bot detection with out-of-process iframes by user-agent and screen size #196
Comments
@ukrexpo shouldn't |
Awesome! This just fixed a problem I was encountering on a particular site. Thanks @ukrexpo. |
I also discovered that puppeteer reports a Additionally a plugin like this could consider changing |
careful also with
it looks like chrome headless doesn't account for scrollbar size regarding window.innerHeight / screen.availHeight |
I think in more recent Chrome versions this might be required: |
Also make sure you're using a recent puppeteer version, in puppeteer@1.8.0 @berstend answer crashes chromium |
pptr |
Opportunity for someone to get involved (#439):
|
The workaround is broken since puppeteer@12.0.0, the last working version is @11.0.0. |
Pretty sure this issue is not applicable anymore, closing as there's no substantive discussion either |
@ukrexpo How can I use multiple devices from your code? |
Real User-Agent is detectable with <iframe> when using "puppeteer-extra-plugin-stealth". To prevent it use "'--disable-features=site-per-process'" argument for puppeteer.launch(). See explanation: puppeteer/puppeteer#2548
Real screen size is also detectable with iframe, to prevent it I used preload() script.
OS: Windows 10
"puppeteer": 3.0.4
"puppeteer-extra": 3.1.9
"puppeteer-extra-plugin-stealth": 2.4.9
Code to reproduce:
The text was updated successfully, but these errors were encountered: