Dhanji R. Prasanna
60aeb67c56
Add stealth mode for Chrome headless to evade bot detection
Implements comprehensive anti-detection measures:
- Override navigator.webdriver to return undefined
- Inject fake chrome.runtime, chrome.loadTimes, chrome.csi objects
- Add realistic plugins and mimeTypes arrays
- Patch permissions API to hide automation
- Set realistic navigator properties (languages, hardwareConcurrency, deviceMemory)
- Remove ChromeDriver-specific window properties (cdc_*)
- Patch Function.prototype.toString to hide modifications
- Add Chrome flags: --disable-blink-features=AutomationControlled
- Set realistic user-agent without HeadlessChrome identifier
- Exclude 'enable-automation' switch
Tested against bot detection sites:
- bot.sannysoft.com: All major tests pass
- Search engines: Works with DuckDuckGo, Yahoo, Brave, Startpage
- Still detected by: Google reCAPTCHA, Cloudflare Turnstile, Bing
2026-01-10 20:34:14 +11:00
..
2025-11-27 21:00:02 +11:00
2026-01-10 20:34:14 +11:00
2025-12-25 18:23:10 +11:00
2026-01-08 12:54:03 +11:00
2025-11-27 21:00:02 +11:00
2026-01-08 12:54:03 +11:00
2026-01-09 14:57:24 +11:00
2026-01-10 15:55:59 +11:00
2025-12-25 18:33:03 +11:00
2025-11-27 21:00:02 +11:00
2026-01-09 16:01:47 +11:00
2026-01-03 15:47:04 +11:00
2026-01-07 10:20:28 +11:00
2025-12-22 16:27:35 +11:00
2026-01-09 14:57:24 +11:00
2026-01-07 10:20:28 +11:00
2026-01-09 15:20:57 +11:00
2026-01-10 13:43:04 +11:00
2025-10-24 16:11:24 +11:00
2025-11-27 21:00:02 +11:00
2025-10-10 09:35:03 +11:00
2026-01-09 14:57:24 +11:00
2025-11-27 21:00:02 +11:00
2026-01-09 15:59:19 +11:00
2026-01-09 15:59:19 +11:00
2026-01-09 14:57:24 +11:00
2026-01-03 17:17:08 +11:00
2025-12-24 14:32:39 +11:00