title: Getting blocked by a website with selenium and chromedriver
body: <p>I'm having some trouble trying to access a web site (bet365.com) with a chrome driver and selenium (I'm quite being &quot;blocked&quot;).</p>
  <p>I can access the site with my ordinary chrome but when I try with chrome driver, it doesn't work.</p>
  <p>I had this problem before and corrected it by using some options as below (python):</p>
  <pre><code>from selenium import webdriver
  
  options = webdriver.ChromeOptions() 
  options.add_argument(&quot;start-maximized&quot;)
  options.add_experimental_option(&quot;excludeSwitches&quot;, [&quot;enable-automation&quot;])
  options.add_experimental_option('useAutomationExtension', False)
  driver = webdriver.Chrome(options=options, executable_path=r'PATH_TO\chromedriver.exe')
  driver.execute_cdp_cmd(&quot;Page.addScriptToEvaluateOnNewDocument&quot;, {
    &quot;source&quot;: &quot;&quot;&quot;
      Object.defineProperty(navigator, 'webdriver', {
        get: () =&gt; undefined
      })
    &quot;&quot;&quot;
  })
  driver.execute_cdp_cmd(&quot;Network.enable&quot;, {})
  driver.execute_cdp_cmd('Network.setUserAgentOverride', {&quot;userAgent&quot;: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.53 Safari/537.36'})
  
  driver.get(&quot;https://www.bet365.com/&quot;)
  </code></pre>
  <p>Now, the problem came back and this code is not working anymore to bypass the protection.
  Can someone help me?</p>