greydingo
Junior Member
- Dec 31, 2014
- 152
- 73
I just posted this in another thread, but I thought it may be better as it's own thread.
I will disclose a method to detect puppeteer with 100% accuracy.
I have never told anyone about this. I've never seen it discussed anywhere, I discovered this on my own a while back.
I'm guessing anti-bot companies already know this trick.
I just uploaded a demo repo.
https://github.com/digitalhurricane-io/puppeteer-detection-100-percent
If your replace a function that puppeteer uses, such as document.querySelector, and throw an error inside of it, you can see the string "__puppeteer_evaluation_script__"
In order to get around this, you need to fork the library and change that string.
I will disclose a method to detect puppeteer with 100% accuracy.
I have never told anyone about this. I've never seen it discussed anywhere, I discovered this on my own a while back.
I'm guessing anti-bot companies already know this trick.
I just uploaded a demo repo.
https://github.com/digitalhurricane-io/puppeteer-detection-100-percent
If your replace a function that puppeteer uses, such as document.querySelector, and throw an error inside of it, you can see the string "__puppeteer_evaluation_script__"
In order to get around this, you need to fork the library and change that string.
Last edited: