title: How to Conceal WebDriver in Geckodriver from BotD in Java?
body: <p>I followed <a href="https://stackoverflow.com/a/60252464">this post on Stackoverflow</a> to disable <code>Firefox WebDriver</code> detection.</p>
  <p>Launch Geckodriver:</p>
  <pre><code>System.setProperty(&quot;webdriver.gecko.driver&quot;, geckdriverExecutableFilePath);
  
  
  
  File firefoxProfileFile = new File(fullPathOfFirefoxInstallationFolder);
  
  
  
  FirefoxProfile firefoxProfile = null;
  
          
   try {
      firefoxProfile = new FirefoxProfile(firefoxProfileFile);
       } catch (Exception e) {
  
      e.printStackTrace();
       }
  </code></pre>
  <p>I disabled <code>WebDriver</code>:</p>
  <p><a href="https://i.stack.imgur.com/7gSqz.png" rel="noreferrer">WebDriver Disabled</a></p>
  <pre><code>FirefoxOptions firefoxOptions = new FirefoxOptions();
  
  firefoxOptions.setProfile(firefoxProfile);
  
  // Disables WebRTC
  firefoxProfile.setPreference(&quot;media.peerconnection.enabled&quot;, false);
  </code></pre>
  <p>I disabled Automation Extensions:</p>
  <p><a href="https://i.stack.imgur.com/GvzEv.png" rel="noreferrer">Automation Extension Disabled</a></p>
  <pre><code>// Disables Automation Extension
  firefoxProfile.setPreference(&quot;useAutomationExtension&quot;, false);
  </code></pre>
  <p>I added Proxy:</p>
  <pre><code>    DesiredCapabilities dc = DesiredCapabilities.firefox();
      Proxy proxy = new Proxy();
      proxy.setHttpProxy(ipAddress + &quot;:&quot; + port);
      proxy.setFtpProxy(ipAddress + &quot;:&quot; + port);
      proxy.setSslProxy(ipAddress + &quot;:&quot; + port);
  
     dc.setCapability(CapabilityType.PROXY, proxy);
  
  
  
  
     firefoxOptions.merge(dc);
  
     driver = new FirefoxDriver(firefoxOptions);
  </code></pre>
  <p>Yet <a href="https://fingerprintjs.github.io/BotD/" rel="noreferrer">BotD</a> still detects my browser as being controlled by automation tool.</p>
  <p><a href="https://i.stack.imgur.com/PoSlA.png" rel="noreferrer">BotD Detection</a></p>
  <p>How can I solve this?</p>