Skip to content

Twitter Policies Has Changed and Login Fails Due to Cloudflare #277

@amirhosein-kia-darbandsary

Description

:
Since the latest Twitter/X policy updates, our automated login flow has stopped working.
The requests are now being blocked by Cloudflare protection, returning a 403 Forbidden response with the message:

"Sorry, you have been blocked. You are unable to access x.com."

This seems to be caused by Cloudflare's new challenge mechanism (JavaScript or CAPTCHA) which the current implementation does not handle.

Steps to Reproduce:

Run the login process using the existing API/script.

Observe that the response returns a 403 error.

Expected Behavior:
Login should work as before and retrieve a valid session.

Actual Behavior:
The request is blocked by Cloudflare, causing the login process to fail.

Handling Cloudflare challenge/JavaScript challenge automatically.

Optionally allowing cookies/session reuse from a browser login to bypass the block

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