A plugin for Chrome created to prevent Chrome headless detection, as explained in by Evan Sangaline on his blog Intoli. In this blog post, a number of bypasses are created in order to prevent websites from detecting a headless Chrome browser. This extension incorporates these bypasses and bundles them into a simple extension, ready to use.
In Google Chrome (for testing purposes):
- Start Google Chrome
- Go to
chrome://extensions/
- Enable developer mode
- Click on the button to load the extension
Use in Selenium Webdriver:
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_extension('/path/to/extension.crx')
browser = webdriver.Chrome(chromedriver_path, options=options)
To test the workings of this extension, navigate to this website: https://intoli.com/blog/making-chrome-headless-undetectable/chrome-headless-test.html