Skip to content

Commit 8dbb2f5

Browse files
committed
Added options to hide automation flags
1 parent 171cc0b commit 8dbb2f5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

TbsCore/Core/WebBrowserInfo.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ private void SetupChromeDriver(Access.Access access, string username, string ser
100100
//options.AddArguments("--aggressive-cache-discard");
101101
//options.AddArguments("--arc-disable-gms-core-cache");
102102

103+
// So websites (Travian) can't detect the bot
104+
options.AddExcludedArgument("enable-automation");
105+
options.AddAdditionalCapability("useAutomationExtension", false);
106+
options.AddArgument("--disable-blink-features=AutomationControlled");
107+
options.AddArgument("--disable-features=UserAgentClientHint");
108+
options.AddArguments("--disable-logging");
109+
options.AddArguments("--disable-infobars");
110+
103111
// Mute audio because of the Ads
104112
options.AddArguments("--mute-audio");
105113

0 commit comments

Comments
 (0)