Skip to content

grok.com detects #455

@amen160

Description

@amen160

Website detecting Camoufox:
Website/WAF: https://grok.com/ (x.ai) — blocked by Cloudflare / x.ai anti-bot rules.
Symptom: After completing the Cloudflare “I’m human” checkbox, the site loads, but sending a chat message fails.
Observed failure: POST https://grok.com/rest/app-chat/conversations/new returns HTTP 403 with JSON:
{ "error": { "code": 7, "message": "Request rejected by anti-bot rules.", "details": [] } }
Extra:
navigator.webdriver is false in Camoufox.
Same machine/IP works fine in normal Chrome/Firefox.
Screenshots:
Screenshot shows Grok UI failing to respond and DevTools Network showing .../conversations/new returning 403 with anti-bot error.
To Reproduce:
Testing site: https://grok.com/ (login required).
Run (minimal repro project):
cd C:\code\camoufox_python_standalone.\run.cmd -ProfileId test_profile_grok -Url "https://grok.com/" -GeoIP -Humanize
Script snippet / initialization:
import camoufox.utils as cfx_utilsfrom camoufox.sync_api import Camoufoxfrom_options = cfx_utils.launch_options( os="windows", geoip=True, humanize=True, headless=False, proxy=None,)from_options["user_data_dir"] = r"C:\code\camoufox_python_standalone\profiles\test_profile_grok\userdata"with Camoufox(from_options=from_options, persistent_context=True) as ctx: page = ctx.pages[0] if ctx.pages else ctx.new_page() page.goto("https://grok.com/", wait_until="domcontentloaded", timeout=60000) # Manual steps: login → pass Cloudflare checkbox → type a message → click Send # Then the API call /rest/app-chat/conversations/new returns 403 + code 7
Other questions:
Are you using a proxy?
No.
Open the website in a private tab in your personal browser using the same IP. Does it work?
Yes (Chrome and Firefox work on the same machine/IP).
Is Camoufox detected randomly or every time?
Not fully deterministic. Sometimes a profile works, but after closing and reopening the browser/profile, it can start failing consistently with the same 403 / code 7 when sending messages.
What OS are you using?
Windows 10 (win32 10.0.26100).
Version:
Pip package: v0.4.11
Camoufox: v135.0.1-beta.24 (Up to date!)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions