Skip to content

Feature Request: do not inject styles on cloudflare turnstiles #1990

@chjj

Description

@chjj

Assuming the turnstiles introspect on the DOM tree, this is a nasty fingerprinting vector, especially when using a private/custom userstyle.

This shouldn't break anything because userstyles aren't meant for the turnstile anyway.

Detection of a turnstile might be tricky because the turnstiles serve very generic HTML with some JS slop mixed in. That said, you could check for the existence of inline scripts with some cloudflare-specific vars: window._cf_chl_opt, etc. The inline script also always delivers its second-stage payload with some variation of /cdn-cgi/challenge-platform/... AFAICT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions