Selenium webdriver: Modifying navigator.webdriver flag to prevent selenium detection

前端 未结 10 992
既然无缘
既然无缘 2020-11-22 00:57

I\'m trying to automate a very basic task in a website using selenium and chrome but somehow the website detects when chrome is driven by selenium and blocks every request.

10条回答
  •  滥情空心
    2020-11-22 01:26

    ChromeDriver:

    Finally discovered the simple solution for this with a simple flag! :)

    --disable-blink-features=AutomationControlled
    

    navigator.webdriver=true will no longer show up with that flag set.

    For a list of things you can disable, check them out here

提交回复
热议问题