From ecab6086fc42bef8832ed8e27a620ef6d3c9e816 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Fri, 23 Jan 2026 02:44:53 -0500 Subject: [PATCH] Fix user agent to match Chrome 136 TLS fingerprint truthbrush uses curl_cffi with impersonate="chrome136", so the user agent must match Chrome to avoid Cloudflare fingerprint mismatch detection. Co-Authored-By: Claude Opus 4.5 --- src/poller.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/poller.py b/src/poller.py index b99ee62..757ba48 100644 --- a/src/poller.py +++ b/src/poller.py @@ -10,9 +10,11 @@ from typing import Optional import truthbrush.api from truthbrush import Api -# Override the default user agent to avoid Cloudflare blocking +# Override the default user agent to match the Chrome 136 TLS fingerprint +# that curl_cffi uses (impersonate="chrome136") truthbrush.api.USER_AGENT = ( - "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0" + "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 " + "(KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36" ) from .database import init_db, is_post_seen, mark_post_seen