Is there any way to bypass Cloudflare Anti Bot?

Hi, I’m curious about this, is there any way to bypass the Cloudflare Anti Bot System? We can achieve this goal if develop on python, by using some library such as selenium-stealth , selenium-wire , or undetected-chrome , I’ve tried by initiate my own driver and also adding some experimental option and preference, but seems it doesn’t work, here’s my code :

import org.openqa.selenium.WebDriver as WebDriver
import as ChromeDriver
import as ChromeOptions
import org.openqa.selenium.remote.DesiredCapabilities as DesiredCapabilities
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory

// Chrome Options 
ChromeOptions options = new ChromeOptions()

//Set Experimental option 
options.setExperimentalOption('excludeSwitches', ['enable-automation'])
options.setExperimentalOption('useAutomationExtension', false)

// Set the user agent string & disable automation
options.addArguments('user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36')

// Webdriver
WebDriver driver = new ChromeDriver(options)

// Change Webdriver

// Use the WebDriver to navigate to the URL

Highly appreciated if someone can help me to achieve this, thanks a lot

1 Like


The recommended way is to disable on the website that you want to test. Purpose of Anti Bot System or Capcha is to prevent automation.

Another way you can do is that to run with your browser profile: Open Browser with Custom Profile

1 Like

Hi @duyluong thanks for answering

Let say we cannot do recommended way and we use browser with custom profile, it’s not a problem when we run in through katalon studio in our local machine right because we have active browser with profile, the next question are :

  1. How to configure the browser with a profile if we run it using a test agent?

The condition, we run the Test Agent and place it on an instance such as an EC2 instance and we build it using docker

@didit ,

Chrome User Profile directory can be transferrable and copyable so:

  • You can add the directory (make a copy) to your test project
  • Or upload to a drive, then download that folder in the pipeline before running Katalon Runtime Engine.