SMOLNET PORTAL home about changes
README: improve note about CDNs and user-agent blocking - sfeed - RSS and Atom parser
(URL) git clone git://git.codemadness.org/sfeed (git://git.codemadness.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e96bdb644ae2f49125079e6218e2777caf633e1c
(DIR) parent 44a4824eeba93a13511251a907179393f247c201
(URL) Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) application/vnd.lotus-organizer
Date: Fri, 9 Jun 2023 14:44:34 +0200
README: improve note about CDNs and user-agent blocking
Prompted by a question from a user. Specificly mention reddit.com now blocks
clients which don't set the User-Agent header. It is specificly mentioned
because there is a reddit feed in the example sfeedrc.
Diffstat:
M README | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/README b/README
@@ -679,8 +679,8 @@ additional metadata from the previous request.
CDNs blocking requests due to a missing HTTP User-Agent request header
sfeed_update will not send the "User-Agent" header by default for privacy
-reasons. Some CDNs like Cloudflare don't like this and will block such HTTP
-requests.
+reasons. Some CDNs like Cloudflare or websites like Reddit.com don't like this
+and will block such HTTP requests.
A custom User-Agent can be set by using the curl -H option, like so:
Response: application/gopher-menu
Original URLgopher://codemadness.org/1/git/sfeed/commit/e96bdb644ae2f...
Content-Typeapplication/gopher-menu; charset=utf-8