Skip to content

重拳出击XHTTP!科福瑞的忠实用户应该如何应对? #25

Open

Description

@RememberOurPromise

近期,不少科福瑞的忠实用户收到了亲切的邮件问候

例如这样:
XTLS/Xray-core#5967

Logs or other evidence of abuse: WebSocket tunneling abuse - Xray/V2Ray x_padding pattern with Go-http client

Image

不过呢,赛博大善人真滴太善了,答案居然写在试卷上!

  1. 首先升级服务端和客户端 Xray-core 到最新版本
    User-Agent问题就解决了

  2. 改个配置
    俄友在面对俄罗斯CDN时已经考虑了x_padding等特征,可以参考这个PR
    XHTTP transport: New options for bypassing CDN's potential detection Xray-core#5414 (comment)

服务端

{
  "xhttpSettings": {
    "host": "example.com",
    "path": "/path",
    "mode": "auto",
    "xPaddingObfsMode": true, //填 true
    "xPaddingMethod": "tokenish", //填 tokenish
    "xPaddingPlacement": "queryInHeader", //可选 queryInHeader, cookie, header, query
    "xPaddingHeader": "X-Cache", //xPaddingPlacement 为 header 或 queryInHeader 时才保留此行,填写合理的字符串
    "xPaddingKey": "_dc" //根据上面的选择,填写合理的字符串
  }
}

客户端

{
  "xhttpSettings": {
    "host": "example.com",
    "path": "/path",
    "mode": "auto",
    "extra": {          //保持与服务端一致,放extra里
    "xPaddingObfsMode": true,
    "xPaddingMethod": "tokenish",
    "xPaddingPlacement": "queryInHeader",
    "xPaddingHeader": "X-Cache",
    "xPaddingKey": "_dc"
    }
  }
}

让我们继续做科福瑞的忠实用户吧!

不过这可以证明在世界顶级网络公司眼中
Xray 排在 V2Ray 前面
s***-b** 和 m***** 根本不入法眼
又赢了


也存在另一个可能,这是GFW的批量举报

WebSocket tunneling abuse - Xray/V2Ray x_padding pattern with Go-http client

是针对所有可能的滥用,填个狗屁不通的通用理由,这次只是正好XHTTP中枪
先不管是谁开枪的,把靶子移走就行了,开启 ECH ,避免域名泄漏给 GFW,再改一下 User-Agent 和 padding 就好

虚假的滥用:跑个XHTTP
真正的滥用:批量发送Abuse Report

不过这可以证明在GFW眼中
Xray 排在 V2Ray 前面
s***-b** 和 m***** 根本不入法眼
怎么又赢了

Activity

  1. fish4terrisa-MSDSM commented on Apr 17, 2026

    @fish4terrisa-MSDSM

    服务端

    {
    "xhttpSettings": {
    "host": "example.com",
    "path": "/path",
    "mode": "auto",
    "xPaddingObfsMode": true, //填 true
    "xPaddingMethod": "tokenish", //填 tokenish
    "xPaddingPlacement": "queryInHeader", //可选 queryInHeader, cookie, header, query
    "xPaddingHeader": "X-Cache", //xPaddingPlacement 为 header 或 queryInHeader 时才保留此行,填写合理的字符串
    "xPaddingKey": "_dc" //根据上面的选择,填写合理的字符串
    }
    }
    客户端
    "extra": { //保持与服务端一致,放extra里

    經過我這邊測試, 如果服務端xPaddingObfsMode等沒有放在extra裡的話就根本不會生效, 只有放在extra裡才會正常生效
    XTLS/Xray-core#5739 這個issue中(與padding obfs無關,但是這個人使用了padding obfs並提供可以工作的配置)是這樣配置的
    我本地測試也是同樣的結果

  2. xqzr commented on Apr 18, 2026

    @xqzr

    科福瑞

    科赋锐

  3. UjuiUjuMandan commented on Apr 18, 2026

    @UjuiUjuMandan

    第三方向 Cloudflare 发送了滥用举报,Cloudflare 只是转发了该举报。那么究竟是谁举报的?举报内容是什么?请澄清一下。 @jon460243

  4. RememberOurPromise commented on Apr 18, 2026

    @RememberOurPromise
    Author

    服务端
    {
    "xhttpSettings": {
    "host": "example.com",
    "path": "/path",
    "mode": "auto",
    "xPaddingObfsMode": true, //填 true
    "xPaddingMethod": "tokenish", //填 tokenish
    "xPaddingPlacement": "queryInHeader", //可选 queryInHeader, cookie, header, query
    "xPaddingHeader": "X-Cache", //xPaddingPlacement 为 header 或 queryInHeader 时才保留此行,填写合理的字符串
    "xPaddingKey": "_dc" //根据上面的选择,填写合理的字符串
    }
    }
    客户端
    "extra": { //保持与服务端一致,放extra里

    經過我這邊測試, 如果服務端xPaddingObfsMode等沒有放在extra裡的話就根本不會生效, 只有放在extra裡才會正常生效 XTLS/Xray-core#5739 這個issue中(與padding obfs無關,但是這個人使用了padding obfs並提供可以工作的配置)是這樣配置的 我本地測試也是同樣的結果

    按照原PR给的example试了不通,抓包看没有生效,试了一下客户端放到extra里就可以了

  5. RememberOurPromise commented on Apr 18, 2026

    @RememberOurPromise
    Author

    第三方向 Cloudflare 发送了滥用举报,Cloudflare 只是转发了该举报。那么究竟是谁举报的?举报内容是什么?请澄清一下。 @jon460243

    这个问题至少在三个不同来源看到不同人的反馈,理由都是相同的:

    WebSocket tunneling abuse - Xray/V2Ray x_padding pattern with Go-http client

    如果是第三方举报,会举报你的域名,在信件里会看到,而不是这个理由
    而且XHTTP没有用WebSocket,"WebSocket tunneling abuse" 应该是科福瑞内部的abuse分类
    第三方看不到x_padding pattern,如果只是胡乱批量举报,那就建议开ECH,这样第三方就无法举报域名了

    可能是packetup比ws和grpc有点吃资源所以科福瑞想清退低价值用户,也没什么奇怪的

  6. jon460243 commented on Apr 18, 2026

    @jon460243

    @UjuiUjuMandan 可能是邮件模板吧,或者内部审查机器人发起

    续上图的完整邮件,另外我还有io域名com域名目前正常work,这个是xyz,难道xyz被认为低价值?

    Image
  7. RememberOurPromise commented on Apr 18, 2026

    @RememberOurPromise
    Author

    看来举报信件是有域名的,那么所有访问该网站的客户端都开启ECH了吗?
    几个域名都是绑在一个CF帐号下的吗?

  8. jon460243 commented on Apr 18, 2026

    @jon460243

    没有开ech,都在一个账号下

  9. RememberOurPromise commented on Apr 18, 2026

    @RememberOurPromise
    Author

    emmm 这么说也不能完全排除GFW在批量举报的可能..

  10. RememberOurPromise commented on Apr 18, 2026

    @RememberOurPromise
    Author

    如果这是GFW批量举报,填个狗屁不通的通用理由就比较扯了,这次只是正好中枪
    先不管谁开枪的,把靶子移走就行了,开启ECH,改一下padding就好

    虚假的滥用:跑个XHTTP
    真正的滥用:批量发送Abuse Report

    不过这可以证明在GFW眼中
    Xray 排在 V2Ray 前面
    s***-b** 和 m***** 根本不入法眼
    怎么又赢了

  11. RPRX commented on Apr 18, 2026

    @RPRX
    Member

    @jon460243 你这是完全自用还是分享给了其他人还是开了机场,得说实话不然影响我们的判断

  12. UjuiUjuMandan commented on Apr 18, 2026

    @UjuiUjuMandan
  13. jon460243 commented on Apr 18, 2026

    @jon460243

    @jon460243 你这是完全自用还是分享给了其他人还是开了机场,得说实话不然影响我们的判断

    自用+分享给2-3人

  14. UjuiUjuMandan commented on Apr 18, 2026

    @UjuiUjuMandan

    列举一下可能暴露配置域名的渠道。

    1. GFW 作为中间人的观测。
    2. 恶意 Xray 客户端。
    3. 能访问 localhost Xray API 的程序,如这个VPN 检测器的实现。
    4. 同一配置的其他用户。
  15. RememberOurPromise commented on Apr 18, 2026

    @RememberOurPromise
    Author

    群友发现API文档中Abuse Reports被下架了
    GFW现在完全没招只能当举报狗了?
    XDRIVE 还没吃上 api.cloudflare.com,怎么GFW就先给滥用完了,太坏了😠

  16. 18 remaining items

  17. Kc2353 commented on Jun 23, 2026

    @Kc2353

    Also vless encryption might help avoid detection but ech definitelt wont

    ECH is to prevent GFW (abuse) 'abuse report' as soon as they notice you are connecting to CF using your SNI.
    We haven't known whether it's reported by CF or GFW

  18. UjuiUjuMandan commented on Jun 23, 2026

    @UjuiUjuMandan
  19. UjuiUjuMandan commented on Jun 23, 2026

    @UjuiUjuMandan

    之前讲错。其实在 Submit an abuse report 的文档里,确实只有 8 类滥用。 https://developers.cloudflare.com/api/resources/abuse_reports/methods/create

    但是在 List abuse reports 的文档里,查询参数的 type 却有 9 类。https://developers.cloudflare.com/api/resources/abuse_reports/methods/list

    对应如下。(AbuseChildren 是否对应 EMER 不太确定,这两个字面上不相关)

    create type list type
    AbuseDmca DMCA
    AbuseTrademark TM
    AbuseGeneral GEN
    AbusePhishing PHISH
    AbuseChildren EMER
    AbuseThreat THREAT
    AbuseRegistrarWhois REG_WHO
    AbuseNcsei NCSEI
    - NETWORK

    那么这个提交参数里根本不存在的 NETWORK 类型举报,又是谁、怎么发出去的呢?

  20. megasoheilsh commented on Jun 23, 2026

    @megasoheilsh

    Using hiding headers also did not change the situation.

          "xPaddingHeader": "X-Cache",
          "xPaddingKey": "_dc",
          "xPaddingMethod": "tokenish",
          "xPaddingObfsMode": true,
    
    Image

    It's quite rare to see abuse report after xpaddingobfs is enabled, tho sometimes the behavior is a bit weird(notably after I first enabled xpaddingobfs I can still connect to it somehow without this configuration on client, the placement of these configs matters.) Did u check the server log(like if u use nginx or caddy reverse proxy, u can check the access log to see the path and headers) and see if xpaddingobfs is actually having effect? Also vless encryption might help avoid detection but ech definitelt wont, cloudflare here can see the sni so ech is useless against this, but because the contect of the https connection is visible to cloudflare they might have used some method to detect if it's xray vless connection. Tho vless-enc here only means cloudflare wont be able to read your traffic, it doesnt mean encryption itself cannot be detected so they might still be able to detect it even if u have vless-enc on. Could u share the configuration files and make sure x_padding obfs is actually having effect? Oh btw personally I wont recommand using X-Cache even tho it's not a standard header it's still used fairly widely and mainstream usage of this header is already well documented. Also where's xPaddingPlacement? Without this the x_padding is still appended after path(just under another name) and could still be pretty obvious ngl.

    What are your suggested parameters? Also, as you can see in the report, the announcement is due to vless, will this issue be resolved with enc?

  21. RememberOurPromise commented on Jun 23, 2026

    @RememberOurPromise
    Author

    换个CF账户和域名

    开启Enc,选择 mlkem768x25519plus.random

    更换一下 xPaddingHeader xPaddingKey

    客户端开启 ECH ,且不要泄露配置给不可信的设备和渠道,再观察一下还有没有 abuse report

  22. fish4terrisa-MSDSM commented on Jun 23, 2026

    @fish4terrisa-MSDSM

    What are your suggested parameters? Also, as you can see in the report, the announcement is due to vless, will this issue be resolved with enc?

    Can you provide your config(both server side and client side)? Remove sensitive information(like domain and userid, path). Without any config file Idk what's going on. Personally I would recommand "xPaddingPlacement": "queryInHeader" or "xPaddingPlacement": "header". Also replace X-Cache with something else, maybe something rare and unique since cf cannot just ban every header except those common, and many websites that's not xray uses custom headers.
    Also now think about it, it might actually be gfw reporting it. It's is quite strange that they didnt simply block the domain or something but inside only reported it to cf. Maybe your configuration is leaked or something. Also ECH is encouraged to be enabled, but some regions might simply ban ECH so it might not work.
    Could be that gfw is simply reporting any traffic remotely shaped like xray vless traffic(tho again it's quite strange that they didnt just ban it, so it's still possible that cf did this but simply tried to shift the blame to someone else)

  23. megasoheilsh commented on Jun 23, 2026

    @megasoheilsh

    What are your suggested parameters? Also, as you can see in the report, the announcement is due to vless, will this issue be resolved with enc?

    Can you provide your config(both server side and client side)? Remove sensitive information(like domain and userid, path). Without any config file Idk what's going on. Personally I would recommand "xPaddingPlacement": "queryInHeader" or "xPaddingPlacement": "header". Also replace X-Cache with something else, maybe something rare and unique since cf cannot just ban every header except those common, and many websites that's not xray uses custom headers. Also now think about it, it might actually be gfw reporting it. It's is quite strange that they didnt simply block the domain or something but inside only reported it to cf. Maybe your configuration is leaked or something. Also ECH is encouraged to be enabled, but some regions might simply ban ECH so it might not work. Could be that gfw is simply reporting any traffic remotely shaped like xray vless traffic(tho again it's quite strange that they didnt just ban it, so it's still possible that cf did this but simply tried to shift the blame to someone else)

    I am in Iran and I don't think gfw iran edition reported it. This week, when I added these headers, the report came. Before that, I wasn't using any headers and it had been working without any problems for several years. ech is also filtered in Iran and unusable. Server and client configs are sent.

    {
    "version": {
    "min": "26.2.6",
    "max": ""
    },
    "log": {
    "loglevel": "warning"
    },
    "dns": {
    "servers": [
    "https://8.8.8.8/dns-query",
    "https://1.1.1.1/dns-query"
    ]
    },
    "inbounds": [
    {
    "listen": "127.0.0.1",
    "port": 10808,
    "protocol": "socks",
    "settings": {
    "udp": true
    },
    "sniffing": {
    "enabled": true,
    "destOverride": [
    "http",
    "tls",
    "quic"
    ],
    "routeOnly": true
    },
    "tag": "socks"
    },
    {
    "listen": "127.0.0.1",
    "port": 10809,
    "protocol": "http",
    "settings": {
    "udp": true
    },
    "sniffing": {
    "enabled": true,
    "destOverride": [
    "http",
    "tls",
    "quic"
    ],
    "routeOnly": true
    },
    "tag": "http"
    }
    ],
    "outbounds": [
    {
    "tag": "proxy",
    "protocol": "vless",
    "settings": {
    "vnext": [
    {
    "address": "",
    "port": 443,
    "users": [
    {
    "id": "",
    "alterId": 0,
    "email": "[email protected]",
    "security": "auto",
    "encryption": "none"
    }
    ]
    }
    ]
    },
    "streamSettings": {
    "network": "xhttp",
    "security": "tls",
    "tlsSettings": {
    "alpn": [
    "h2"
    ],
    "fingerprint": "HelloChrome_131",
    "serverName": ""
    },
    "xhttpSettings": {
    "host": "",
    "headers": {
    "User-Agent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.103 Mobile Safari/537.36"
    },
    "mode": "stream-up",
    "xPaddingHeader": "X-Cache",
    "xPaddingKey": "_dc",
    "xPaddingMethod": "tokenish",
    "xPaddingObfsMode": true,
    "path": "/",
    "xPaddingBytes": "1"
    }
    }
    }
    ],
    "routing":{
    "domainStrategy": "AsIs",
    "rules":[
    ]
    },
    "remarks":""
    }

  24. fish4terrisa-MSDSM commented on Jun 23, 2026

    @fish4terrisa-MSDSM

    Replace the xpadding part with this:

    "xPaddingObfsMode": true,
    "xPaddingMethod": "tokenish",
    "xPaddingPlacement": "header",
    "xPaddingHeader": "X-<some header u love here>",
    "xPaddingKey": "_<some padding key u love here>",
    

    Set xPaddingPlacement
    Never seen xPaddingBytes before where did u get it? Also it doesnt need to be set the default value works fine.
    Also enable vless enc, you didnt have vless enc on, that could be one of the reasons(your data is bascially clear for cf)
    Also dont use / as path, set it to some sub path and host some fake file storage cloud service there as disguise
    Also fingerprint can be simply set to be chrome and it'll work.

  25. hann-wang commented on Jun 24, 2026

    @hann-wang

    之前讲错。其实在 Submit an abuse report 的文档里,确实只有 8 类滥用。 https://developers.cloudflare.com/api/resources/abuse_reports/methods/create

    但是在 List abuse reports 的文档里,查询参数的 type 却有 9 类。https://developers.cloudflare.com/api/resources/abuse_reports/methods/list

    对应如下。(AbuseChildren 是否对应 EMER 不太确定,这两个字面上不相关)

    create type list type
    AbuseDmca DMCA
    AbuseTrademark TM
    AbuseGeneral GEN
    AbusePhishing PHISH
    AbuseChildren EMER
    AbuseThreat THREAT
    AbuseRegistrarWhois REG_WHO
    AbuseNcsei NCSEI

    • NETWORK
      那么这个提交参数里根本不存在的 NETWORK 类型举报,又是谁、怎么发出去的呢?

    I think the "automated detection" in the screenshot is a clear indication the abuse report was initiated by CF itself.

  26. UjuiUjuMandan commented on Jun 24, 2026

    @UjuiUjuMandan
  27. RememberOurPromise commented on Jul 11, 2026

    @RememberOurPromise
    Author

    惊闻mekya现已加入mihimo套餐,请求数太吓人不会把CDN给薅死吧,应该没人用?不然又要重拳出击了

  28. terada46 commented on Aug 29, 2026

    @terada46

    目前没收到过这类警告邮件,是否也有必要添加这几行进行预防?

  29. fish4terrisa-MSDSM commented on Aug 30, 2026

    @fish4terrisa-MSDSM

    目前没收到过这类警告邮件,是否也有必要添加这几行进行预防?

    放入對性能沒有任何影響,還能避免潛在風險,基本還是推薦加入
    除非是有特殊原因(比如使用的某些平臺的工具過老無法支持這些配置)否則還是加入比較好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions