Skip to content
This repository was archived by the owner on Aug 26, 2026. It is now read-only.

Commit cf721e6

Browse files
author
AxelPilop
committed
fix: enhance HTTP headers to bypass Cloudflare protection
1 parent 944d01f commit cf721e6

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

app/tasks/monitor.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,16 @@ async def check_model_status(session: aiohttp.ClientSession, username: str) -> d
2525
try:
2626
url = f"https://chaturbate.com/api/chatvideocontext/{username}/"
2727
headers = {
28-
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
28+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
2929
"Accept": "application/json",
30+
"Accept-Language": "en-US,en;q=0.9",
31+
"Accept-Encoding": "gzip, deflate, br",
3032
"Referer": "https://chaturbate.com/",
33+
"Origin": "https://chaturbate.com",
34+
"Connection": "keep-alive",
35+
"Sec-Fetch-Dest": "empty",
36+
"Sec-Fetch-Mode": "cors",
37+
"Sec-Fetch-Site": "same-origin",
3138
}
3239

3340
async with session.get(url, headers=headers, timeout=10) as response:

version.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"version": "2025.44.D",
2+
"version": "2025.44.E",
33
"changelog": [
44
"FIX: Corrected HLS.js CDN URL to eliminate 404 errors for source map files",
5-
"FIX: Improved online status detection - models with 'public' or 'away' status are now correctly detected as online"
5+
"FIX: Improved online status detection - models with 'public' or 'away' status are now correctly detected as online",
6+
"FIX: Enhanced HTTP headers to bypass Cloudflare protection and allow API calls from datacenter IPs"
67
]
78
}

0 commit comments

Comments
 (0)