Cloudflare #3

Open
opened 2021-11-09 13:14:10 -05:00 by 0x80 · 2 comments
Owner

Cloudflare serves 403 errors for all requests from rsstube, meaning currently rsstube cannot support any site that uses Cloudflare.

The solution will probably require the following:

  • changing the user-agent string
  • additional HTTP headers
  • possibly providing some cookie
Cloudflare serves 403 errors for all requests from rsstube, meaning currently rsstube cannot support any site that uses Cloudflare. The solution will probably require the following: - changing the user-agent string - additional HTTP headers - possibly providing some cookie
Author
Owner

57e2a92532 adds an --unbreak option (based on Tor Browser's request headers) for dealing with Cloudflare.

This seems to be resolved for now, but I'll leave this issue open indefinitely to track updates, as I expect the "unbreak" techniques will need to be periodically updated.

https://negativezero.link/code/0x80/rsstube/commit/57e2a92532c2b589f97d643326cb461f6a4ae0ff adds an `--unbreak` option (based on Tor Browser's request headers) for dealing with Cloudflare. This seems to be resolved for now, but I'll leave this issue open indefinitely to track updates, as I expect the "unbreak" techniques will need to be periodically updated.
Author
Owner

Tor Browser requests Accept-Encoding: gzip, deflate, br. Right now, rsstube doesn't do this because I don't know how to then decompress the response data. I suspect this is part of why some Cloudflare sites aren't working over Tor, even when --unbreak is used and the site works in the Tor Browser.

TODO: If server sends compressed data, decompress that data.
TODO: Add Accept-Encoding: gzip, deflate, br HTTP header to --unbreak option.

Tor Browser requests `Accept-Encoding: gzip, deflate, br`. Right now, rsstube doesn't do this because I don't know how to then decompress the response data. I suspect this is part of why some Cloudflare sites aren't working over Tor, even when `--unbreak` is used and the site works in the Tor Browser. TODO: If server sends compressed data, decompress that data. TODO: Add `Accept-Encoding: gzip, deflate, br` HTTP header to `--unbreak` option.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: 0x80/rsstube#3
No description provided.