Replies: 11 comments 16 replies
-
By brute-forcing a list of latest UAs like this one. |
Beta Was this translation helpful? Give feedback.
-
Open the feed with the "normal" browser (where the feed is loading correctly) with the developer tools enabled. You will see there what UA is used by the browser to access the feed URL. |
Beta Was this translation helpful? Give feedback.
-
Thank you, to the both of you, for these valuable pointers. I'm on to it. |
Beta Was this translation helpful? Give feedback.
-
I am still failing to add this feed: https://dailyinvestor.com/feed/ I'd gone ahead and added a list of User Agents — assuming that I had to add them to the HTTP Headers section of the "Add a new feed" dialogue, as shown in the following screenshot. Obviously, I am not doing it the way it should be done, notably:
Thank you. |
Beta Was this translation helpful? Give feedback.
-
This site (including the feed page) is protected by CloudFlare so unfortunately this feed cannot be added to RSS Guard. Currently there is no way to pass this protection from the application. The only way now is to ask the site owner to disable the CloudFlare protection for the feed URL (https://dailyinvestor.com/feed). |
Beta Was this translation helpful? Give feedback.
-
I appreciate your help very much, thanks. The same feed works fine with my Android feed reader. Therefore, I am curious to know how that one is capable of bypassing the CloudFlare limitation. |
Beta Was this translation helpful? Give feedback.
-
Generally CloudFlare works the following way: when you try to access the page on the protected site it performs the series or redirects (to determine if you are human or not) and, if success, set the specific cookie (named "cf_clearance"). Then when you access the site in the future it just reads this cookie and allow you to pass if it is valid. My guess is your current feed reader kind of "emulate" the real web browser to perform this series of redirects and finally set the required cookie. I also guess that RSS Guard was never intended to do such thing, it just downloads the feed from the specified URL. Making it act like "real browser" will be a very huge revamp, with a lot of work required. What can be (theoretically) done besides that:
So without additional work there is no way to pass the CloudFlare protection now. I should also add then even if something will be implemened it does not guarantee that everything will work for the CloudFlare. It will be just a step forward to allow further (maybe successful) experiments. |
Beta Was this translation helpful? Give feedback.
-
About the UA part: @martinrotter has already answered in your closed issue ticket on how to supply its custom value here. Notice that first you prepend a line with the "user-agent=" part, then you add a custom UA value after it. Another issue from your screenshot is that I'm not sure if RSS Guard will be happy with multiple UA values provided, as usually there can be only one value at given moment (or maybe the app will only take the first or last value, perhaps @martinrotter can give an insight on that). That's what I meant by brute-forcing: you provide only a single UA value and try fetching with it; if denied, replace it with another value, until a website accepts it.
As @Ac314 mentioned, the website is hidden behind Cloudflare, which only accepts HTTP/2 or above connections, while by default RSS Guard sends older HTTP/1.* ones. To circumvent this, you need to enable HTTP/2 on this feed. Here is how I did it:
P.S. for @martinrotter: for some reason this mentioned feed (https://dailyinvestor.com/feed) neither can't be discovered in a 'adding new feed' window nor its metadata can't be fetched even with HTTP/2 enabled. Not sure if the feed is invalid or metadata fetching ignores the HTTP/2 option, if you're willing to look into it. |
Beta Was this translation helpful? Give feedback.
-
Your recommendations worked fine for me. Also learned a lot from you all in this discussion — thanks, again. Settings: Daily Investor |
Beta Was this translation helpful? Give feedback.
-
Hey there! Just a quick tip from my own experience fiddling with RSS Guard, if you’re running into trouble getting a feed to load, the User Agent (UA) might be the culprit. What usually works for me is starting by checking what UA my browser is using when the feed loads correctly. You can do that by opening your browser’s developer tools (just hit F12), going to the Network tab, and checking the request headers when the feed loads. If that doesn’t help or feels like too much hassle, I’ve had some luck manually testing with a list of modern UA strings—like those from recent versions of Chrome or Firefox. Just plug one in under the |
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is in reference to this closed topic: [BUG]: Newsmax feeds not getting added... · Issue #1716 · martinrotter/rssguard
Question:
For example, this is another new news feed that opens in Firefox and other feed readers, but it fails getting added to RSS Guard:
https://dailyinvestor.com/feed/
Beta Was this translation helpful? Give feedback.
All reactions