3 ms·
If you assume that every bot protection script will look at navigator.webdriver, you can just set a breakpoint before the script runs, and set a debugger statem
by jonatron 4y ago
If you assume that every bot protection script will look at navigator.webdriver, you can just set a breakpoint before the script runs, and set a debugger statement on the property to land somewhere useful:
Object.defineProperty(navigator, 'webdriver', {
get: () => {debugger; return false},
});
- cactusplant7374 4y agoI have used this chrome driver project. The author probably can create something more lightweight with his knowledge. For my purposes I couldn’t find a Cloudflare bypass script that worked so I had to use this instead. https://github.com/ultrafunkamsterdam/undetected-chromedriver https://github.com/ultrafunkamsterdam/undetected-chromedrive...
- jonatron 4y agoUsing defineProperty can be detected with navigator.hasOwnProperty("webdriver"), which is why I suggested using it for reverse engineering rather than avoiding detection.