Skip to content

Remove dead wellformedweb.org wfw namespace from RSS feed#1984

Merged
joyqi merged 1 commit into
masterfrom
fix/feed-remove-wfw-namespace
Jun 3, 2026
Merged

Remove dead wellformedweb.org wfw namespace from RSS feed#1984
joyqi merged 1 commit into
masterfrom
fix/feed-remove-wfw-namespace

Conversation

@joyqi

@joyqi joyqi commented Jun 3, 2026

Copy link
Copy Markdown
Member

问题

电信天翼云等安全扫描把站点 RSS Feed 报为「恶意广告」(#1981)。

根因:RSS 2.0 输出里声明并使用了 wfw 命名空间,指向 http://wellformedweb.org/CommentAPI/。该域名早已过期并被博彩/广告站抢注,安全扫描器读到 Feed 中的这个 URL 就判定为恶意链接。WordPress 也曾遇到同样的问题

改动

var/Typecho/Feed.php 中移除对 wellformedweb.org 的全部引用:

  • 删除 RSS 2.0 头部的 xmlns:wfw="http://wellformedweb.org/CommentAPI/" 命名空间声明
  • 删除 <wfw:commentRss> 元素

两者必须一起删除,否则保留 wfw: 前缀而无声明会产生无效 XML。

影响

评论 Feed 的能力不受影响:Atom 输出仍通过标准的 <link rel="replies" type="application/atom+xml"> 暴露评论源。

Fixes #1981

The wfw namespace URL (http://wellformedweb.org/CommentAPI/) declared in
the RSS 2.0 feed points to a domain that has long since expired and been
re-registered by gambling/ad sites. Security scanners now flag the feed
as containing a malicious link because of this URL.

Drop the xmlns:wfw declaration and the <wfw:commentRss> element. Comment
feeds are still advertised in the Atom output via the standard
<link rel="replies" type="application/atom+xml"> element.

Fixes #1981
@joyqi joyqi merged commit ca8e236 into master Jun 3, 2026
5 checks passed
@joyqi joyqi deleted the fix/feed-remove-wfw-namespace branch June 3, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

今天被电信天翼云警报说网站有恶意广告

1 participant