Skip to content
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

[Stealth] Detected by Google #193

Closed
userlip opened this issue May 8, 2020 · 21 comments
Closed

[Stealth] Detected by Google #193

userlip opened this issue May 8, 2020 · 21 comments
Labels
bug Something isn't working plugin: stealth ㊙️ Detection evasion related

Comments

@userlip
Copy link

userlip commented May 8, 2020

Hey,

Since a few days now more and more often my puppeteer instances get detected by Google.
Trying to sign in no longer works.

After putting in my email it says that the browser is not safe to use.

@nitishmakhija
Copy link

Facing the same issue.
Any update on this?

@zhzehong
Copy link

+1

@thegeekybaniya
Copy link

Yes, this has started in the last few days, I had written and tested a script for signing up on Gmail 15 days ago.

@JunkTurkey
Copy link

+1

@sandou78
Copy link

I downgrade my plug in to 2.4.5 and is working now

@JunkTurkey
Copy link

downgrading really works

@nitishmakhija
Copy link

I downgrade my plug in to 2.4.5 and is working now

Can you help me I tried downgrading it to 2.4.5 the stealth plugin.

What would be the version of extra and puppeteer dependency?

@sandou78
Copy link

sandou78 commented May 15, 2020

all you need to do it is --> npm i puppeteer-extra-plugin-stealth@2.4.5

@JediBurrell
Copy link

Downgrading doesn't work for me.

puppeteer@2.1.0
puppeteer-extra@3.1.9
puppeteer-extra-plugin-stealth@2.4.5

const browser = await puppeteer.launch({headless: false});
const page = (await browser.pages())[0];
page.goto('https://accounts.google.com/SignOutOptions?continue=https%3A%2F%2Fstadia.google.com%2F');

@nitishmakhija
Copy link

all you need to do it is --> npm i puppeteer-extra-plugin-stealth@2.4.5

Tried it didn’t work
Can you share a sample package.json file with me ? Showing the versions for dependencies that would be a big help

@dench1k
Copy link

dench1k commented May 17, 2020

Tried it didn’t work
Can you share a sample package.json file with me ? Showing the versions for dependencies that would be a big help

{ "dependencies": { "puppeteer": "^2.1.1", "puppeteer-extra": "^3.1.9", "puppeteer-extra-plugin-stealth": "^2.4.5" } }

@nitishmakhija
Copy link

Tried it didn’t work
Can you share a sample package.json file with me ? Showing the versions for dependencies that would be a big help

{ "dependencies": { "puppeteer": "^2.1.1", "puppeteer-extra": "^3.1.9", "puppeteer-extra-plugin-stealth": "^2.4.5" } }

Nope still getting the same error

@dench1k
Copy link

dench1k commented May 17, 2020

Downgrading doesn't work for me.
Nope still getting the same error

I can only suggest setting the same options to puppeteer as me:
const browser = await puppeteer.launch({ args: [ "--no-sandbox", "--headless", "--disable-gpu", "--window-size=1920x1080" ] });

@Lastofthefirst
Copy link

Lastofthefirst commented May 18, 2020

In my case I am getting detected using gmail, when i automate log in from one account (which i previously automated log in many times), but not from an account which I havnt previously used.

The downgrade didn't solve the issue for me.

@itsdarrylnorris
Copy link
Contributor

Downgrading to 2.4.5 seems to fix this issue.

@Aditya94A
Copy link

Any updates on an actual solution instead of just downgrading?

@teewoeijer
Copy link

teewoeijer commented Jun 4, 2020

Add this line if you don’t want to downgrade.


await page.evaluateOnNewDocument(() => {
	const newProto = navigator.__proto__
	delete newProto.webdriver
	navigator.__proto__ = newProto
});

@pashkasan
Copy link

Add this line if you don’t want to downgrade.


await page.evaluateOnNewDocument(() => {
	const newProto = navigator.__proto__
	delete newProto.webdriver
	navigator.__proto__ = newProto
});

confirm this works, thanks man!

@Aditya94A
Copy link

I'm very curious to know how come so many people are scraping google, what are your use-cases? How are you using the scraped data?

@itsdarrylnorris
Copy link
Contributor

@AdityaAnand1 ,

I was doing a proof-of-concept on automating login to Gmail, and Google will notice that you are using puppeteer if you are not using this package.

@berstend
Copy link
Owner

This is most likely fixed, closing until further notice:
#213 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin: stealth ㊙️ Detection evasion related
Projects
None yet
Development

No branches or pull requests