Short answer: Cloudflare does not rely on a single “Selenium detected” switch. Its bot defenses combine request and header heuristics, JavaScript Detections (JSD), session behavior, and (on eligible plans) machine-learning models that use browser signals. Headless Selenium can therefore produce different evidence from an interactive Chrome session, but a challenge is not proof that headless mode alone caused it.
The reliable way to investigate is a controlled comparison on a zone you own: keep the page, Chrome version, network, account, and timing as similar as possible; compare an interactive browser with Selenium-controlled Chrome; and record the challenge, JSD result, bot score, and applicable WAF configuration. Cloudflare does not publish a deterministic Selenium-only rule or threshold.
What Cloudflare is actually evaluating
Cloudflare describes several detection engines rather than one automation test. Broad heuristics inspect request characteristics. JavaScript Detections inject a lightweight, invisible script that identifies headless browsers and other malicious fingerprints. Business and Enterprise Bot Management can additionally apply machine learning to request, header, session, and browser features. Which engines and fields are available depends on the zone’s plan and configuration. See Cloudflare’s Bot detection engines documentation.
Cloudflare’s own wording is deliberately broader than “Selenium equals bot”: “The JavaScript Detections (JSD) engine identifies headless browsers and other malicious fingerprints.” Browser rendering characteristics, extensions, proxy behavior, IP reputation, cookies, and request timing can all affect the result. Cloudflare’s engineering discussion also describes client-side signals whose output can vary with hardware and software (engineering blog).
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minute#1 Best Overall
- Privacy Protection and Lens Care: Avoid private information from hacking while preventing dust-fall and scratching of the camera lens
- Multiple Compatibility: Suitable for Logitech webcam C920x, C920, C922, C930e, C922x Pro Stream HD Camera
- Artful Design: Modeled and designed exclusively to fit the above devices from Logitech and make it more stylish
- Easy Flip Mechanism: Can be turned 180 angle and easily take the cover off when flipping more than 180
- Simple Installation: Attaches securely to your Logitech webcam without leaving residue, allowing for quick and hassle-free setup
Headless is one variable, not a verdict
A Selenium session may differ from a visible session in navigator properties, rendering output, timing, input patterns, available APIs, or the way a profile is created. Those differences are signals among many. Cloudflare’s official bot-protection material also recognizes that legitimate tools such as Selenium have potential automation and testing uses (Evasion best practices PDF). This supports testing on your own property, not bypassing protection on someone else’s site.
Scores and JSD results are separate observations
When Bot Management evaluates a request, Cloudflare documents bot scores from 1 through 99. A score of 0 means the request was not evaluated; it does not mean “safe” or “human.” A missing or empty User-Agent can itself produce a score of 1, so inspect basic request and proxy configuration before blaming Selenium. Details are in Cloudflare’s bot-score documentation.
JSD pass/fail and the final bot score can diverge. A JSD pass does not prevent another heuristic from assigning a low score. Conversely, a JSD failure does not automatically block a request: enforcement requires a WAF custom rule that uses the JSD field. Cloudflare cautions that legitimate clients may have no JSD result, so a rule must account for missing values (JavaScript Detections documentation).
Design a fair Selenium-versus-Chrome test
Use a staging hostname or other zone that you administer. Do not probe a third-party site to discover its thresholds. The following procedure is a controlled diagnostic design based on Cloudflare’s documented observables; it is not a claim that a particular Selenium build will always be detected.
Rank #2
- Privacy Protection: CloudValley webcam cover is designed for those who prioritize privacy, security, and peace of mind when using laptops, tablets, and computers
- Fashion Design: The space aluminum alloy webcam cover features a subtle design which compliments the beautiful aesthetic of top devices
- Ultra-Thin Design: Measures only 0.023 (0.6 mm) inch thin, ensuring it does not interfere with closing your laptop or device while providing reliable camera coverage
- Broad Compatibility: Works flawlessly with most laptops (MacBook, HP, Dell, Asus, Acer, Lenovo), All-in-One PCs and leading tablets including iPad, Surface Pro, Galaxy Tab, Fire HD, and Google Pixel Tablet
- Simple to Use: Only need to align to the webcam, attach and press it firmly for 15 seconds. Does not interfere with web use or indicator light
- Confirm the boundary and plan. Identify the zone, the Bot Management or Super Bot Fight Mode features enabled, whether JSD is enabled, and which security-event fields your plan exposes. Feature availability varies by plan.
- Prepare one stable target. Use a simple HTML page on the same hostname for every run. Keep its content, URL, account state, Chrome major version, operating system, network path, and test time consistent. Avoid changing several variables at once.
- Capture an interactive baseline. Open the page in ordinary, visible Chrome. Record the HTTP result, whether an interstitial challenge appears, cookies set, and the bot/JSD fields visible in Cloudflare Security Events or logs. A first navigation is not a settled JSD result: the browser generally must first receive HTML and execute the injected script.
- Run Selenium against the same page. Use the same Chrome version and network where practical. Make the same later browser-facing request, then collect the same fields. Record headless mode, command-line options, profile state, and timestamps with the run.
- Repeat sessions. Run multiple fresh and repeated sessions. Cloudflare’s
__cf_bmcookie helps smooth bot scores using request patterns, so one first request can be a poor representative of a session. - Compare like with like. Separate first HTML navigation from subsequent requests, same-network from changed-IP runs, JSD outcome from final score, and observed challenge behavior from WAF policy. A challenge is an outcome, not proof of a Selenium-only cause.
Minimal Selenium test harness
The example below tests a zone you control and records browser-visible outcomes. It does not attempt to defeat a challenge. Install Selenium with pip install selenium; Selenium Manager can obtain a compatible driver for current Chrome installations.
from datetime import datetime, timezone
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
TARGET = "https://staging.example.com/test-page"
def run(label, headless):
options = Options()
if headless:
options.add_argument("--headless=new")
options.add_argument("--window-size=1365,900")
driver = webdriver.Chrome(options=options)
try:
started = datetime.now(timezone.utc).isoformat()
driver.get(TARGET)
print({
"label": label,
"started": started,
"final_url": driver.current_url,
"title": driver.title,
"cookies": [c["name"] for c in driver.get_cookies()],
"html_prefix": driver.page_source[:300]
})
finally:
driver.quit()
run("interactive", headless=False)
run("selenium-headless", headless=True)
For a useful comparison, run each mode in separate sessions, wait for the same page state, and save Cloudflare event identifiers or exported logs alongside the printed output. Do not infer a JSD pass from the page source alone; use the field Cloudflare exposes in your account.
What to record in each run
| Dimension | Why it matters |
|---|---|
| HTTP status and final URL | Distinguishes the origin page from a challenge or redirect. |
| Challenge/interstitial shown | Shows enforcement behavior, not the underlying reason by itself. |
| Bot score and evaluation state | Score 0 means not evaluated; scores are plan- and request-dependent. |
| JSD result and timestamp | First HTML requests may not yet have a result. |
| User-Agent and network/IP | A missing User-Agent can yield score 1; an IP change is a major confounder. |
| Cookies and session age | Cookies such as __cf_bm make repeated requests different from fresh ones. |
| WAF rule state | JSD failure only has blocking effect when a rule uses that signal. |
How to interpret common outcomes
Interactive succeeds, headless is challenged
This indicates a difference worth investigating, not a universal Selenium signature. Compare Chrome versions, profile state, extensions, rendering environment, User-Agent, network path, and request timing. Check whether a WAF rule acts on JSD or another bot field.
Both sessions are challenged
The cause may be a zone-wide rule, IP or reputation signal, authentication state, missing headers, or an origin/page problem. Verify the same URL in visible Chrome, inspect the event fields, and test a simple page before changing browser settings.
Recommended Free Tools
Rank #3
- Note: Not suitable for MacBooks released after 2023 or devices with a protruding front camera; Not applicable to full-screen or notch-style tempered glass screen protectors; Do not use on the rear camera of the phone.
- 💻 Why Do You Need a Webcam Cover Slide? — Safeguard your privacy by covering your webcam with our reliable webcam cover when not in use. Don't let anyone secretly watch you. Stay protected!
- ✅ Thin & Stylish — Enhance your laptop's functionality and aesthetics with our 0.027" ultra-thin webcam covers. Seamlessly close your laptop while adding a touch of sophistication.
- ✅ Fits Most Devices — Compatible with laptops, phones, tablets, desktops! Keep your privacy intact on Ap/ple, Mac/Book, iPh/one, iP/ad, H/P, L/novo, De/ll, Ac/er, As/us, Sa/msung devices.
- ✅ 365 Days Protection — Our upgraded 3.0 adhesive ensures a strong hold that won't damage your equipment. Experience reliable, long-term privacy protection day in and day out.
Neither session is challenged
That is a valid result. It may mean the relevant engine did not evaluate the request, the page does not trigger the configured policy, or the plan does not expose the feature you expected. Do not turn it into a claim that Cloudflare cannot detect automation.
JSD fails but traffic continues
That is expected when no WAF custom rule enforces the result. Cloudflare recommends a managed challenge for enforcement and warns that rules should account for legitimate clients without a JSD result. Avoid applying a blanket rule to first-page requests, native mobile/API traffic, or WebSocket endpoints, where a JSD result may not exist.
Confounders and troubleshooting
“The score is 1, so Selenium was detected.”
First check whether the User-Agent is missing or empty, whether a proxy or extension rewrote it, and whether the request was evaluated. Cloudflare documents missing User-Agent as a possible reason for score 1.
“The first request has no JSD field.”
Navigate to a normal HTML page, allow its script to run, then inspect a subsequent browser request. Cloudflare says the first request generally has no JSD data because the browser must receive and execute the injected script first.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsRank #4
- 【Premium Webcam Cover】This webcam privacy cover is an accessory of computer webcam. No worry about interfering with web camera lens use or indicator light; No damage to your device in any way as well. A helpful privacy protector and dust separator
- 【Privacy Protector】Slide the web camera cover over your webcam lens when not in use, and prevents web hackers from Spying on you. It is perfect to provide privacy security and peace of mind to individuals, groups, organizations, companies and governments. It also protects your camera lens from dust, and keeps it in high-definition resolution all the ways
- 【Durable Material】The web cam cover is made of high-strength plastic, which ensures that your privacy is protected for a long and lasting period of time. The back of the web camera privacy cover slide also has a strong 3M adhesive layer. It helps the privacy protector stick firmly to your device. The most convenient, super thin design, and extra mini size, make it perfectly combine with your devices
- 【Wide Compatibility】This webcam cover is compatible with most popular webcams with flat area surrounding lens or with protruding lens, such as Logitech HD Pro Webcam C920 C920x C930e and C922, Logitech C615 and C270 (NOT fit Logitech C910, B910, C310). It can be also used as a cover for the peep hole on door
- 【For Logitech Webcam Cover】 The streamcam cover kit comes with 2 pack. Please clean the lens surface before applying. Make sure the mounting surface is cleaned completely so that it sticks properly and firmly
“Results change between identical runs.”
Compare cookies, session age, IP, account login, timing, and Chrome profile. Repeat fresh and warm sessions separately; do not average unlike requests.
“A challenge never completes in automation.”
Record it as an observed challenge outcome. Do not automate attempts to evade it. Verify that your test zone’s policy permits your test traffic, and use Cloudflare’s event details to identify the rule and engine involved.
“I am testing Cloudflare Browser Run.”
Browser Run is a separate Cloudflare service, not Selenium. Cloudflare says it sends identifying headers and method-specific bot-detection IDs, and recommends a WAF skip rule when scanning a zone you own so your own protection does not interfere (Automatic request headers). Do not generalize that configuration into a Selenium bypass.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
If your goal is a clean visual capture rather than diagnosing Cloudflare signals, ScreenshotNeo returns a screenshot or PDF from one GET request. It accepts consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing state in X-Page-Verdict and X-Billed headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients.
Free tools Windows power users keep installed
One-click scans. No signup required.
Use the API documentation at screenshotneo.com/docs/ for all options. A minimal call is:
Best Value
- 【Protect Privacy Security】Focusing on network security, now we can easily and effectively protect personal and family privacy security , Just gently slide the slide and close the camera, you can stop the intrusion of hackers.
- 【 Ultra Thin Design】The new ultra-thin design, with a thickness of only 0.022 inches, is made of flexible ABS material and is not fragile. Will not affect the closing of the laptops and scratch the laptops.
- 【Easy to install】 Strong adhesive makes the cover not fall, keep the screen clean and free of stains during installation, tear off the adhesive tape on the back, align it with our camera, and press hard for 10 seconds to work.
- 【Compatible with 】Compatible with camera for Laptop, tablet, computers, Echo Show and Apple Devices,as: MacBook Pro,Macbook Air,iMac ,Mac mini,iPad,MacBook Air, iPhone 6/7/8 Plus etc front camera .
- [What you get] 6 pack black webcam covers.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Equivalent clients:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
ScreenshotNeo also supports full-page and element captures, device presets, retina scale, dark mode, custom CSS and JavaScript, clicks, waits, blocked resources, headers, cookies, geolocation, PDFs, resizing, caching, signed links, asynchronous webhooks, bulk capture, and a usage API. The Free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000. Create a free ScreenshotNeo account.
Limits of what this test can prove
You can establish that two controlled sessions produced different Cloudflare outcomes under recorded conditions. You cannot infer a proprietary threshold, prove that every headless Chrome session is detected, or attribute a result to Selenium while network, profile, headers, plan, and WAF settings differ. Cloudflare changes product behavior and plan features over time, so record the documentation and account configuration used for each investigation.
Frequently Asked Questions
Does Cloudflare always detect headless Chrome?
No. Cloudflare documents multiple signals and does not publish a deterministic Selenium-only rule. Headless Chrome can be one contributing signal among request, session, browser, and policy factors.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →Can a JSD failure alone block a request?
No. A WAF custom rule must use the JSD field, and the rule should handle legitimate requests that have no JSD result.
What does Cloudflare bot score 0 mean?
It means Bot Management did not evaluate that request. It is not a safety or human-verification result.
Should I test Selenium against a public website?
No. Run comparisons only on a domain or staging zone you administer, with a policy that permits the test traffic.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

