RSS 上最多显示的帖子数量?

发布于 2024-11-06 03:21:55 字数 184 浏览 3 评论 0原文

我从来不需要经常使用 RSS,但现在我有一个项目要做,我想知道是否可以提取某个博客的所有帖子的 RSS 提要...

我不是在谈论创建一个饲料发生器。我只是好奇为什么大多数 blogspot.com 等网站只提供最后 5 篇或最后 20 篇文章,但从未提供完整列表......这是性能/安全原因吗?我想用户有权决定提要中包含多少帖子,对吗?

I never needed to play a lot with RSS, but now I have a project to do, and I wonder if it is possible to pull an RSS feed of all the posts for a certain blog...

I'm not talking about creating a feed generator. I'm just curious why most of the blogspot.com etc websites have available only the last 5 or last 20 posts, but never the complete list... is it a performance/security reason? I guess it is the user's right to decide how many posts go in the feed, right?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笨笨の傻瓜 2024-11-13 03:21:55

您想要在 RSS-Feed 中包含多少条目取决于您想要通过 RSS-Feed 实现的目标。通常您希望提供有关您网站上当前文章的信息。这就是为什么您的提要中通常只有最新文章的原因。

性能当然是一个问题。拥有众多关注者的流行 RSS-Feed 不希望一直发送巨大的 XML 文件。这个问题可以通过足够的资源来解决,但只要它不能真正帮助你实现目标,为什么还要这么做呢?

我没有看到真正的安全问题。如果有人想窃取您的内容,他可以直接简单地迭代您网站上的文章。 RSS 会让事情变得更容易一些,但如果有人想窃取内容,他无论如何都会窃取它,无论是否有完整的 RSS 提要。如果您考虑拒绝服务 - 我们又回到了性能问题 - 可能会对可用性造成威胁。但这已经是相当推测了。

How many entries you want to have in your RSS-Feed depends on the goals you want to achieve with the RSS-Feed. Usually you want to provide information about the current articles on your site. That's why you usually have only the most recent articles in the feed.

Performance is of course an issue. A popular RSS-Feed with many followers does not want to send a huge XML file all the time. That can be addressed with enough ressources, but as long as it does not really help your goal, why do it?

I do not see a real security issue. If someone wants to steal your content, he can simple iteratate over the articles on your website directly. RSS would make it a little easier, but if someone wants to steal the content, he will steal it anyway, with or without a full RSS feed. If you take Denial of Service into consideration - we are back at performance issues - there might be a threat to availability. But that's already quite speculative.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文